Bug 407941 - Unable to make the service... executable, aborting execution trying to run AppImage
Summary: Unable to make the service... executable, aborting execution trying to run Ap...
Status: REPORTED
Alias: None
Product: neon
Classification: KDE Neon
Component: Packages Unstable Edition (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-25 13:50 UTC by probono
Modified: 2019-06-06 14:02 UTC (History)
6 users (show)

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


Attachments
If you do not trust this program, click cancel (34.79 KB, image/png)
2019-05-25 13:50 UTC, probono
Details
Unable to make the service executable, aborting execution (25.92 KB, image/png)
2019-05-25 13:50 UTC, probono
Details

Note You need to log in before you can comment on or make changes to this bug.
Description probono 2019-05-25 13:50:10 UTC
Created attachment 120306 [details]
If you do not trust this program, click cancel

SUMMARY

Getting "Unable to make the service... executable, aborting execution" when trying to run AppImage from the menu

STEPS TO REPRODUCE

1. Download and run neon-unstable-20190523-0949.iso
2. Install and run the appimaged daemon (appimaged, continuous build (commit 660c916), build 65 built on 2018-12-06 18:38:08 UTC)
3. Try to run an application from the FAT32 partition /isodevice/Applications/ using the entry in the start menu (this partition is read-only and owned by root, but the application does have the executable bit set)

OBSERVED RESULT

Dialog box "If you do not trust this program, click cancel", followed by an error "Unable to make the service... executable, aborting execution"

me@host:~$ ls -lh /isodevice/Applications/Firefox-66.0.5.glibc2.4-x86_64.AppImage 
-rwxr-xr-x 1 root root 70M May 25 06:54 /isodevice/Applications/Firefox-66.0.5.glibc2.4-x86_64.AppImage

me@host:~$ ls -lh /home/me/.local/share/applications/appimagekit_6cb66ed35d36fc0a8e072fd5d0acc2d1-firefox.desktop 
-rwxr-xr-x 1 me me 735 May 25 13:45 /home/me/.local/share/applications/appimagekit_6cb66ed35d36fc0a8e072fd5d0acc2d1-firefox.desktop

EXPECTED RESULT

Nothing needs to be made executable because as one can see, the application is already executable

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: neon-unstable-20190523-0949.iso
(available in About System)
KDE Plasma Version: 5.16.80
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.0

ADDITIONAL INFORMATION

/isodevice/ is where the system mounts the partition from which the Live ISO is booted. In my case, this is a FAT32 partition.
Comment 1 probono 2019-05-25 13:50:47 UTC
Created attachment 120307 [details]
Unable to make the service executable, aborting execution
Comment 2 Nate Graham 2019-05-28 13:26:39 UTC
Are you sure this could be related to the Neon packaging? Seems more like a code issue TBH.
Comment 3 Harald Sitter 2019-06-06 14:02:09 UTC
for some context: from what I looked up just now this is the authorization system in KIO

https://lxr.kde.org/source/frameworks/kio/src/widgets/krun.cpp#0774

the very first check there, which would eventually go into makeServiceExectuable in an attempt to a) authorize a desktop file and if authorized b) make it exectuable so it works from there on out

authorization is https://lxr.kde.org/source/frameworks/kconfig/src/core/kdesktopfile.cpp#0110
which is true if the file is in a well known XDG path or +x