Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 465740 - >xfce-base/thunar-1.6 - All desktop files should be executable.
Summary: >xfce-base/thunar-1.6 - All desktop files should be executable.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: XFCE Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-13 06:27 UTC by Fab
Modified: 2020-07-17 16:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fab 2013-04-13 06:27:38 UTC
With thunar-1.6 I hit Xfce bug#9934 ⁽¹⁾.

From a real user point of view this is really annoying, because if you drag'n'drop a desktop file from the main menu to your desktop, you will always get the warning saying that the desktop file must be executable each time you'll try to launch the app through this shortcut.

The problem is that all the desktop files are installed in /usr, are owned by root and controlled by emerge.

To find desktop files that are not executable, you can run :
$ find /usr -name *.desktop ! -executable

If you want an example on your system, install libreoffice-bin. If you run it from the menu there's no problem. But if you drag'n'drop a LO desktop file from the menu to your desktop, you'll get the warning if you try to launch it.



1. https://bugzilla.xfce.org/show_bug.cgi?id=9934
Comment 1 Christoph Mende (RETIRED) gentoo-dev 2013-04-14 06:45:47 UTC
I'm not quite sure what you're asking for here. None of the .desktop files in /usr are executable (remove the ! from your `find` and see 0 results). That's the way it's intended.
Are you asking that thunar automatically sets the executable bit while copying files from the menu to your desktop? If so, that's definitely something you should file upstream.
Comment 2 Fab 2013-04-14 07:08:11 UTC
(In reply to comment #1)
> None of the .desktop files in /usr are executable
> (remove the ! from your `find` and see 0 results).

On my system :
> $ find /usr -name *.desktop -executable
> /usr/share/applications/kde4/kmailservice.desktop
> /usr/share/applications/kde4/okularApplication_ooo.desktop
> /usr/share/applications/kde4/okularApplication_tiff.desktop
> /usr/share/applications/kde4/okularApplication_comicbook.desktop
> /usr/share/applications/kde4/okularApplication_dvi.desktop
> /usr/share/applications/kde4/okteta.desktop
> /usr/share/applications/kde4/okularApplication_fb.desktop
> /usr/share/applications/kde4/kate.desktop
> /usr/share/applications/kde4/okularApplication_ghostview.desktop
> /usr/share/applications/kde4/okularApplication_fax.desktop
> /usr/share/applications/kde4/okularApplication_xps.desktop
> /usr/share/applications/kde4/okularApplication_kimgio.desktop
> /usr/share/applications/kde4/ktelnetservice.desktop
> /usr/share/applications/kde4/ark.desktop
> /usr/share/applications/kde4/okularApplication_plucker.desktop
> /usr/share/applications/kde4/gwenview.desktop
> /usr/share/applications/kde4/okularApplication_pdf.desktop
> /usr/share/applications/kde4/okular.desktop

KDE applications desktop files are executable.

> Are you asking that thunar automatically sets the executable bit while
> copying files from the menu to your desktop? If so, that's definitely
> something you should file upstream.

No. I'm asking for consistency. It would be great if each desktop file installed by emerge was executable. In the current state I'm forced (as root) to fix all desktop files installed in /usr on each gentoo system I manage, because end users will asked me WTF is this warning.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-07-17 16:37:09 UTC
This is not something specific to xfce.  If you'd like to see this happen, it needs a global discussion and a new QA policy to enforce this consistently.  However, I don't really see that happening given that the vast majority of packages install them non-executable (and unsurprisingly since you can't normally execute them via shell).