views:

968

answers:

2

I am developing a cross platform application that needs to auto start upon user login (not system start). What are the common locations/methods in invoking auto start for Windows/Linux.

For example, are the Windows registry locations for auto start compatible across all versions of windows (XP, Vista, Windows 7, etc).

And what about Gnome, KDE?

I am looking for the most general method which will work across many versions of Windows as possible.

+2  A: 

For Windows, the easiest way is to put a shortcut in the Startup folder in the Start menu. Not very sophisticated but you have no worries about compatability.

Dan
+1  A: 

For gnome, ".desktop" files can be placed in ~/.config/autostart/

here's a sample, ~/.config/autostart/glista.desktop:

[Desktop Entry]
Type=Application
Name=GLista - Simple todo list manager
Exec=glista
Icon=system-run
Comment=
Name[en_US]=GLista
Comment[en_US]=Super-simple to-do list manager
X-GNOME-Autostart-enabled=true

By the way, the interface for managing startup applications can be found on the "System - Preferences - Startup Applications".

jcinacio
Aah I see, I've used the GUI version, I wanted to do this at installation so this is perfect!.
The Unknown