Bug 377836 - blacklist of execution of application.desktop outside ~/.local/share/application folder on system with noexec flag on /home
Summary: blacklist of execution of application.desktop outside ~/.local/share/applicat...
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-kservice
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-20 14:47 UTC by farandole
Modified: 2021-08-25 21:50 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description farandole 2017-03-20 14:47:48 UTC
After kde upgrade to QT 5.8.0, launching an application from the panel icon raises an annoying windows xp like window asking if I trust the program.

see screenshot: https://framapic.org/8acmhBU8cfoo/Kj8zD2JFwNMv.png

Clicking "continue" fails to launch the application and raises an error "Service '/home/username/.local/share/plasma_icons/firefox.desktop' must be executable to run."

This happens because the .desktop files are stored outside of ~/.local/share/applications/ which seems to be blacklisted for execution when /home is mounted with noexec flag.

Bug replication:
1. mount /home with noexec flag: 
   mount -o remount,exec /home
2. click on application icon from panel

Fix:
1. move the ~/.local/share/plasma_icons directory to ~/.local/share/applications/plasma_icons: 
   mv ~/.local/share/plasma_icons ~/.local/share/applications/
2. add a symlink to the plasma_icons directory to ~/.local/share/:
   ln -s ~/.local/share/applications/plasma_icons ~/.local/share/plasma_icons

archlinux forum post for reference: 
https://bbs.archlinux.org/viewtopic.php?pid=1698141#p1698141
Comment 1 Ahmad Samir 2021-08-25 21:50:00 UTC
I think this has been fixed; feel free to reopen if you still have this issue.