Re: [yoshimi-user] moving the yoshimi config files ...

  • From: cal <cal@xxxxxxxxxxxx>
  • To: yoshimi-user@xxxxxxxxxxxxxxxxxxxxx
  • Date: Tue, 13 Jul 2010 04:41:52 +1000

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

good advice, thanks! I'll deal with it tommorra.


Other related posts: