Delete file then run file at startup
- by Henry Gibson
I'm running the music player Foobar2000 through Wine at startup. For some reason when I shutdown Ubuntu the Foobar2000 process is ended abnormally in Wine and when it runs next time I get an annoying "start in safe mode?" message. Not a huge problem, but I'd like it fixed.
The safe mode message only appears if a file called "running" is present when Foobar2000 starts (if it isn't deleted when closed properly). So by deleting "running" then starting Foobar2000, the message doesn't appear.
I thought it would be easy enough to enter this as a startup command, however it doesn't want to work.
The command I am using is
rm '/home/henry/.wine/drive_c/users/henry/Application Data/foobar2000/running';'/home/henry/.wine/drive_c/Program Files (x86)/foobar2000/foobar2000.exe'
which works fine if I just run it from terminal, the file is deleted then foobar2000 runs.
Does anyone know why this isn't working at startup?
Also, will this run with a terminal visible? How can I make just the gui appear?
Thanks