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#31006 - [kde] desktop files are executable

Attached to Project: Arch Linux
Opened by Sébastien Luttringer (seblu) - Saturday, 04 August 2012, 17:09 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 10 December 2012, 10:43 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Ronald van Haren (pressh)
Andrea Scarpino (BaSh)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Kde packages provide desktop files which are executable. desktop file shoud not be executable !

run the following command to view all packages
$ find /usr/share/applications/kde4/ -name '*.desktop' -perm /111 | xargs pacman -Qqo|sort|uniq

executing a desktop file produces output like this:
$ /usr/share/applications/kde4/korganizer.desktop
/usr/share/applications/kde4/korganizer.desktop: line 1: [Desktop: command not found
/usr/share/applications/kde4/korganizer.desktop: line 3: and: command not found
/usr/share/applications/kde4/korganizer.desktop: line 4: en: command not found
/usr/share/applications/kde4/korganizer.desktop: line 5: $'\330\247\331\204\330\252\331\202\331\210\331\212\331\205': command not found
/usr/share/applications/kde4/korganizer.desktop: line 6: $'\320\267\320\260': command
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Monday, 10 December 2012, 10:43 GMT
Reason for closing:  Not a bug
Additional comments about closing:  see the upstream explanation
Comment by Andrea Scarpino (BaSh) - Saturday, 04 August 2012, 18:18 GMT
This could be a regression in cmake.
Comment by Andrea Scarpino (BaSh) - Saturday, 04 August 2012, 18:40 GMT
Is a bug in many KDE CMakeLists.txt files, they use the macro INSTALL( PROGRAM..) instead of INSTALL( FILES ).
I reported this upstream ( https://bugs.kde.org/show_bug.cgi?id=304569 ), but I didn't find the freedesktop specification for the desktop entries permissions; could you point me to one?
Comment by Sébastien Luttringer (seblu) - Saturday, 04 August 2012, 20:54 GMT
I see no reference either. (http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s02.html)

But it make sense, desktop files are like other non executable files (png, mp3, ...) and permissions are filesystem dependant.

Those files are not executable (no elf header, no sheebang, no starting key which can be detected by binfmt). Making them executable seems to be useless (and harmfull).
Comment by cfr (cfr42) - Friday, 02 November 2012, 01:32 GMT
I don't use korganizer but this persists in many kde4 applications' desktop files and the upstream bug (for korganizer) does not seem to have attracted any response.

Loading...