GNOME Bugzilla – Bug 548129
gnome-session-properties doesn't create ~/.config/autostart
Last modified: 2008-08-19 00:57:31 UTC
Please describe the problem: gnome-session-properties doesn't create ~/.config/autostart. If it doesn't exist, then any attempt to add a new startup program entry fails. Steps to reproduce: 1. Delete ~/.config/autostart if it exists (or move it if you want to retain its contents). It doesn't exist on a fresh user profile. 2. Open gnome-session-properties in terminal 3. Add an entry Actual results: gnome-session-properties fails to create our new .desktop file and spits out the following type of error: ** (gnome-session-properties:6053): WARNING **: Could not save /home/chr1s/.config/autostart/firefox.desktop file Expected results: gnome-session-properties should happily create the folder ~/.config/autostart and add a new .desktop file to it Does this happen every time? Yes Other information: Adding the ~/.config/autostart folder manually and then re-attempting the above steps allows us to add additional startup programs.
Created attachment 116833 [details] [review] create-autostart-dir.patch I forgot to mention that this bug report was originally reported at https://bugs.launchpad.net/gnome-session/+bug/258145 by James Westby. Anyway, attached is a patch which fixes this.
Hi, I independently wrote a patch for this failure, which uses the existing function to create the directory. I'm not sure which you prefer, but I attach it here for your consideration. Thanks, James
Created attachment 116905 [details] [review] create the autstart dir when needed (alternative solution)
Thanks for the report. This should now be fixed in trunk.