Delete file then run file at startup
Posted
by
Henry Gibson
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Henry Gibson
Published on 2012-11-07T16:10:17Z
Indexed on
2012/11/07
17:17 UTC
Read the original article
Hit count: 370
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
© Ask Ubuntu or respective owner