Search code examples
wxpythonstartup

wxPython application auto launched at system startup


I'm trying to make my wxPython application - which is previewed for launching on Windows, MacOSX and Linux - booted automatically at system startup.

AFAIK, I can use python's winreg to write a shortcut link to Windows' registry.

But is there anyway to do it which can run on all system operations? All ideas will be appreciated.


Solution

  • You can certainly use _winreg to add a registry key in Windows, although I think you could also just put the shortcut into Window's special Startup folder which is buried in the User folder on newer Windows versions.

    For Linux, it sounds like you could use '/etc/rc.local'. See the following link for additional details:

    On Mac, it sounds like you may need to use Automator: