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 481860 - Substandard .desktop file (patch against latest SVN attached)
Substandard .desktop file (patch against latest SVN attached)
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: General
unspecified
Other Linux
: Normal minor
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2007-09-30 12:28 UTC by Stephane Loeuillet
Modified: 2007-10-01 18:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Should fix .desktop problems and XDG compliance (817 bytes, patch)
2007-09-30 12:29 UTC, Stephane Loeuillet
committed Details | Review

Description Stephane Loeuillet 2007-09-30 12:28:52 UTC
empathy.desktop file is misplaced (old gnome-only directory) and substandard :

Use standard $(sysconfdir)/xdg/autostart/ instead of old deprecated gnome-only
version $(datadir)/gnome/autostart

Patch would place the misplaced .desktop file to the fd.o
mandated standard directory.

http://standards.freedesktop.org/autostart-spec/autostart-spec-latest.html#id2452086

Actually on Ubuntu Gutsy :
/usr/share/autostart/ : empty (really old location)
/usr/share/gnome/autostart/ : 3 files (g-c-c, empathy, nm-applet) => old
gnomeonly
/etc/xdg/autostart/ : 11 files



Additionally, in .desktop file itself, Encoding= line as been deprecated for a while (any .desktop file should be valid UTF-8)
Comment 1 Stephane Loeuillet 2007-09-30 12:29:25 UTC
Created attachment 96413 [details] [review]
Should fix .desktop problems and XDG compliance
Comment 2 Xavier Claessens 2007-10-01 14:24:38 UTC
Hum, it seems gnome-session does not look in /usr/local/etc/xdg/autostart. But I agree I have to respect the fd.o standard.

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 3 Stephane Loeuillet 2007-10-01 18:54:50 UTC
Xavier :

From http://standards.freedesktop.org/autostart-spec/autostart-spec-0.5.html#id2452086 :

The Autostart Directories are $XDG_CONFIG_DIRS/autostart as defined in accordance with the  "Referencing this specification" section in the  "desktop base directory specification".

 If the same filename is located under multiple Autostart Directories only the file under the most important directory should be used.

Example: If $XDG_CONFIG_HOME is not set the Autostart Directory in the user's home directory is ~/.config/autostart/

Example: If $XDG_CONFIG_DIRS is not set the system wide Autostart Directory is /etc/xdg/autostart/

Example: If $XDG_CONFIG_HOME and $XDG_CONFIG_DIRS are not set and the two files /etc/xdg/autostart/foo.desktop and ~/.config/autostart/foo.desktop exist then only the file ~/.config/autostart/foo.desktop will be used because ~/.config/autostart/ is more important than /etc/xdg/autostart/ 

So, try to define $XDG_CONFIG_DIRS to /usr/local/etc/xdg/ and start gnome-session after.

If it doesn't work, then it is a gnome-session bug ;)