-2

I need my own gnome applet python program to run automatically when system starts.

Ajay
  • 3
  • 2

1 Answers1

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