After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 548129 - gnome-session-properties doesn't create ~/.config/autostart
gnome-session-properties doesn't create ~/.config/autostart
Status: RESOLVED FIXED
Product: gnome-session
Classification: Core
Component: gnome-session-properties
2.23.x
Other All
: Normal major
: ---
Assigned To: Session Maintainers
Session Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-17 13:36 UTC by Chris Coulson
Modified: 2008-08-19 00:57 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
create-autostart-dir.patch (1.08 KB, patch)
2008-08-17 22:00 UTC, Chris Coulson
rejected Details | Review
create the autstart dir when needed (alternative solution) (1.45 KB, patch)
2008-08-18 21:04 UTC, James Westby
committed Details | Review

Description Chris Coulson 2008-08-17 13:36:00 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.
Comment 1 Chris Coulson 2008-08-17 22:00:47 UTC
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.
Comment 2 James Westby 2008-08-18 21:03:40 UTC
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
Comment 3 James Westby 2008-08-18 21:04:31 UTC
Created attachment 116905 [details] [review]
create the autstart dir when needed (alternative solution)
Comment 4 William Jon McCann 2008-08-19 00:57:31 UTC
Thanks for the report.  This should now be fixed in trunk.