I need my own gnome applet python program to run automatically when system starts.
Asked
Active
Viewed 49 times
-2
-
Check out http://www.pygtk.org/articles/applets_arturogf/ it contains some pretty decent information for setting things up – D3181 Jul 27 '16 at 05:35
-
1please read how to ask question here. – karan Jul 27 '16 at 05:36
-
1Your answer is here http://stackoverflow.com/questions/12973777/how-to-run-a-shell-script-at-startup – Rahul K P Jul 27 '16 at 06:29
1 Answers
0
All you need to do is put a script in /etc/init.d/
and it will run on startup.
Also, be sure to put the interpreter at the top of the file, such as #! /bin/bash
, and be sure to make it executable with chmod +x /etc/init.d/myscript
Example file
#! /bin/bash
python /path/to/my/script.py

wg4568
- 319
- 4
- 15
-
I am getting this error in syslog how to fix it "GtkWarning: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed". – Ajay Jul 27 '16 at 07:29
-
@Ajay It's probably something to do with your script. It sounds like something to do with a GUI, and if you're trying to run an application with a GUI on startup, you would want to have it run when you login, rather than on boot. – wg4568 Jul 28 '16 at 06:44