Bug 377836

Summary: blacklist of execution of application.desktop outside ~/.local/share/application folder on system with noexec flag on /home
Product: [Frameworks and Libraries] frameworks-kservice Reporter: farandole
Component: generalAssignee: David Faure <faure>
Status: RESOLVED WORKSFORME    
Severity: normal CC: a.samirh78, kdelibs-bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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.