View Full Version : Run script at startup?
Jeremy_Ray
Mar 15th 2012, 09:09 PM
I'm trying to get Pystromo to automatically run at startup. I've gone into System Settings>Startup and Shutdown>Add Script, and selected "pystromo-mon.py." The script is added to the list, and set to run at startup. It doesn't run. If I run ps x in a terminal, the python script doesn't show up.
I've tried creating it as a symbolic link, and not as a symbolic link.
It's executable.
I can run it from the terminal and it works fine.
Any ideas?
whatthefunk
Mar 16th 2012, 12:10 AM
Where is your script? Is the path executable?
How did you add it? Looking at my ps x output, everything written in python is prefixed with "python". For example:
python /usr/share/ibus-anthy/engine/main.py --ibus
Jeremy_Ray
Mar 16th 2012, 01:42 AM
I got it to run by adding it as a program instead of a script.
I've got one more bug with it to iron out, which requires a little explaining.
Pystromo-mon.py watches to see what programs are running. When it sees GIMP start, pystromo-mon.py starts pystromo-remap.py, which watches my Nostromo N52 gamepad and remaps the key output according to a configuration file, gimp.map. My problem now is that it appears gimp.map is not being found. I've written the program's author who is usually helpful. It seems like there must be an issue with the path, but I'm not sure why the path would be different using autostart.
Pystromo-mon and pystromo-remap are in Documents/pystromo.
Gimp.map is in Documents/pystromo/config.
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.