Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#5719 - gnome-session-properties could not save .desktop file

Attached to Project: Arch Linux
Opened by Kenneth (ks1) - Monday, 30 October 2006, 22:43 GMT
Last edited by Roman Kyrylych (Romashka) - Monday, 13 November 2006, 21:31 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To arjan timmerman (blaasvis)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

If you open gnome-session-properties in a terminal and add a command to "Startup Programs" you receive in terminal.

[kenneth@archlinux ~]$ gnome-session-properties

** (gnome-session-properties:4299): WARNING **: Could not save /opt/gnome/share/gnome/autostart/gnome-power-manager.desktop file


** (gnome-session-properties:4299): WARNING **: Could not save /opt/gnome/share/gnome/autostart/gnome-volume-manager.desktop file

Any change in the default values of gnome-session-properties results in this error/WARNING. If I click disable/enable for a startup program it will save sometimes, sometimes it will not. I have tried 2 different fresh installs and i have the same result.

The permissions are as follows.
[kenneth@archlinux autostart]# ls -la
total 20
drwxr-xr-x 2 root root 4096 2006-10-30 12:04 .
drwxr-xr-x 8 root root 4096 2006-10-01 14:39 ..
-rw-r--r-- 1 root root 4666 2006-10-01 08:59 gnome-power-manager.desktop
-rw-r--r-- 1 root root 3157 2006-10-14 15:44 gnome-volume-manager.desktop




This task depends upon

Closed by  Jan de Groot (JGC)
Tuesday, 27 March 2007, 16:42 GMT
Reason for closing:  Fixed
Additional comments about closing:  can't reproduce it with gnome-session 2.18 from testing, so it looks like it's fixed. (upstream bugreport says so too)
Comment by Roman Kyrylych (Romashka) - Wednesday, 08 November 2006, 21:41 GMT
That's because you run gnome-session-properties an ordinary user, but .desktop files are writable only by root.
Comment by Kenneth (ks1) - Friday, 10 November 2006, 14:50 GMT
I understand about the permissions of the .desktop files themselves. The problem is logging on with a regular user (through gdm or console) and going to Sessions and trying to add/remove a startup command it will not work. I have never ran gnome-session-properties as root before in any gnome release. It should be able to save as a normal user.
Comment by Roman Kyrylych (Romashka) - Friday, 10 November 2006, 15:00 GMT
All .desktop files are writeable only by root (except few with wrong permissions). It should call gksu for this.
Comment by Kenneth (ks1) - Tuesday, 14 November 2006, 17:56 GMT
I understand your point. I have never heard of gnome-session-properties being ran with gksu. Either way if that is what needs to be done, then it needs to be changed. You cannot add/remove anything to the session without it.
Comment by Roman Kyrylych (Romashka) - Wednesday, 15 November 2006, 09:17 GMT
Hmm... but I _can_ add programs to autorun in Gnome as non-root. :-/
I added beryl-manager few days ago.
Comment by Kenneth (ks1) - Wednesday, 15 November 2006, 22:10 GMT
Well that is how i come across the problem. I tried adding beryl-manager and it would no save.
If I logged in through command prompt manually with .xinitrc it would work only sometimes. I switched to GDM login after the problems with / being opened when double clicking usbstick and other devices. Now I cannot save at all. With the given error in the original message.
Comment by Kenneth (ks1) - Sunday, 19 November 2006, 01:51 GMT
http://bugzilla.gnome.org/show_bug.cgi?id=335145

related information to the bug i have filed i beleive.
There is an included patch to fix the behavior described in the bug report at gnome.org

Loading...