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 545882 - Disable Desktop Entry File special-casing in non-special locations
Disable Desktop Entry File special-casing in non-special locations
Status: RESOLVED DUPLICATE of bug 688632
Product: nautilus
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-01 16:49 UTC by Alexander “weej” Jones
Modified: 2017-08-29 15:10 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alexander “weej” Jones 2008-08-01 16:49:14 UTC
desktop:, computer:, network: (+ more?) have legitimate reasons to use Desktop Entry files in funky ways (example being that the IconView motif and label come from the properties defined in the file), but any folder other than this should just treat the files as normal, with a generic "Desktop Entry" icon and the "blabla.desktop" file name.

I was hacking on my project just now and I created a file called "something.desktop" via Nautilus, edited it and decided I was going to make it into a D-Bus service definition file instead, so I typed my contents and saved, went back to Nautilus and renamed it to "org.example.something.service", symlinked that into my /usr/share/dbus-1/services and spent 5 minutes figuring out why it wasn't working.

It turns out that the contents of the file had been changed to include a [Desktop Entry] section, with "Name=org.example.something.service", whilst the file remained to be addressed "something.desktop".

It seems that Desktop Entry files are voodoo magic when it comes to actually managing files, and it would be very useful for developers if there was at least an option for turning off the special handling for everywhere except the special locations listed above.
Comment 1 António Fernandes 2017-08-29 15:10:49 UTC
With the separation of desktop handling, we should be able to finally drop the special casing of *.desktop files next cycle.

I didn't know about this report from 2008. We have been tracking this issue as bug 688632, so let's mark this as a duplicate.

*** This bug has been marked as a duplicate of bug 688632 ***