I'm gathering commands to build a post-installation script, and I want to have the script automagically add certain apps to the Startup Applications list as if I had added them manually, such as the GNOME Login sound, and Xscreensaver. Any ideas?


You don't need to do anything with post-install scripts for this. You simply need to provide the correct .desktop file for your app, following the Freedesktop Autostart Spec. This will enable autostart of the app.

  • Well, is there any way to make the script generate a .desktop file for each app that I want to autostart? – StrangeCrunchy1 Apr 17 '13 at 0:39
  • Figured it out...I copied the code from an existing .desktop file and modified it for each app I wanted to add, using echo to create the .desktop files from within the script...I can't believe the answer was so simple. – StrangeCrunchy1 Apr 17 '13 at 7:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.