On 13/07/10 04:17, Ivan Hernandez wrote:
Never ask. Just do it. If you feel gulty for moving user's setup files
tell them on a popup what have you done. Even better, ask them to
restart their computer to apply the new settings so they have a reason
to complain.
Now, i think this could be done in this logical way:
if ( !exists('.config') ) mkdir ('.config');
if ( exist('.yoshimi') ) {
mv('.yoshimi', '.config/yoshimi');
alert('I moved your settings to .config/yoshimi because home
directories look like trash');
} else if (!exist('.config/yoshimi')) {
createconfig('.config/yoshimi');
}
that's the idea.
Ivan