Bug 468128

Summary: AppImages cannot be started, when Dolphin is launched via keyboard shortcut
Product: [Frameworks and Libraries] frameworks-kio Reporter: sh.frenz
Component: generalAssignee: KIO Bugs <kio-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: akselmo, bugseforuns, david.rivoal, dennis, dolphin-bugs-null, inb-bugzilla-1e1cff, izzylaif, johnzooi, kde.isolating320, kdelibs-bugs-null, meven29
Priority: NOR Keywords: wayland-only
Version First Reported In: 5.114.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.0
Sentry Crash Report:

Description sh.frenz 2023-04-03 19:26:40 UTC
SUMMARY
When i start dolphin via konsole or via mouseclick on the taskbar icon, i can launch appimages without any problem.
When i launch dolphin via my keyboard shortcut (meta + e) the appimage failes to launch, indicating "The command could not be found".
Reproducible with two different appimages.

STEPS TO REPRODUCE
1. Open Dolphin via keyboard shortcut
2. Open AppImage file via Doubleclick
3. Success (or failure, depending on perspective, i guess)

OBSERVED RESULT
Appimage does not launch

EXPECTED RESULT
Appimage  launches

Linux/KDE Plasma: 
Operating System: Fedora Linux 37
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.8-200.fc37.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 1 Patrick Silva 2023-04-04 02:55:36 UTC
Can reproduce on Arch Linux.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Graphics Platform: Wayland
Comment 2 Ben Bonacci 2023-04-08 11:40:29 UTC
I can also reproduce this issue with version 22.12.3 on Fedora. After some testing, it appears the problem only occurs on Wayland. The logs bring up kwin_wayland_wrapper not being able to access a file or directory before the AppImage crashes.
Launching the AppImage in X11 according to the reporter's instructions doesn't cause this issue.
Comment 3 Ben Bonacci 2023-04-08 11:40:58 UTC
Pasting the full log here for searchability

FedoraKDE systemd-coredump[4412]: Process 4409 (AppImage 1.AppI) of user 1005 dumped core.

                                                 Module /home/468128/Downloads/AppImage 1.AppImage with build-id 2b28c9d62013e6b5542a1920e2bcc440fa19b8b1
                                                 Metadata for module /home/468128/Downloads/AppImage 1.AppImage owned by FDO found: {
                                                         "type" : "rpm",
                                                         "name" : "fuse",
                                                         "version" : "2.9.9-15.fc37",
                                                         "architecture" : "x86_64",
                                                         "osCpe" : "cpe:/o:fedoraproject:fedora:37"
                                                 }

                                                 Module linux-vdso.so.1 with build-id 0e19d95031e35af771320b35ad442be95499505c
                                                 Module libfuse.so.2 with build-id c99dce336855352000b9e64201198abac9efcb66
                                                 Metadata for module libfuse.so.2 owned by FDO found: {
                                                         "type" : "rpm",
                                                         "name" : "fuse",
                                                         "version" : "2.9.9-15.fc37",
                                                         "architecture" : "x86_64",
                                                         "osCpe" : "cpe:/o:fedoraproject:fedora:37"
                                                 }

                                                 Module ld-linux-x86-64.so.2 with build-id bb6fec54c7521fddc569a2f4e141dfb97bf3acbe
                                                 Module libc.so.6 with build-id 81daba31ee66dbd63efdc4252a872949d874d136
                                                 Module libz.so.1 with build-id d94299d7572e23295ceaf7674110eb6f2689cd91
                                                 Metadata for module libz.so.1 owned by FDO found: {
                                                         "type" : "rpm",
                                                         "name" : "zlib",
                                                         "version" : "1.2.12-5.fc37",
                                                         "architecture" : "x86_64",
                                                         "osCpe" : "cpe:/o:fedoraproject:fedora:37"
                                                 }

                                                 Module libpthread.so.0 with build-id 622fcaae1f5e94890852b15a1705dff85830347b
                                                 Module libdl.so.2 with build-id ff36f66b23c53809d27933a667b1f5d6b55e033b
                                                 Stack trace of thread 4409:
                                                 #0  0x00000000004083b8 n/a (/home/468128/Downloads/AppImage 1.AppImage + 0x83b8)
                                                 #1  0x000000000040b2a5 n/a (/home/468128/Downloads/AppImage 1.AppImage + 0xb2a5)
                                                 #2  0x000000000040b12e n/a (/home/468128/Downloads/AppImage 1.AppImage + 0xb12e)
                                                 #3  0x0000000000407ec0 n/a (/home/468128/Downloads/AppImage 1.AppImage + 0x7ec0)
                                                 #4  0x000000000040ebba n/a (/home/468128/Downloads/AppImage 1.AppImage + 0xebba)
                                                 #5  0x000000000040e442 n/a (/home/468128/Downloads/AppImage 1.AppImage + 0xe442)
                                                 #6  0x0000000000404dbb n/a (/home/468128/Downloads/AppImage 1.AppImage + 0x4dbb)
                                                 #7  0x00007fafaa292510 __libc_start_call_main (libc.so.6 + 0x27510)
                                                 #8  0x00007fafaa2925c9 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x275c9)
                                                 #9  0x0000000000405064 n/a (/home/468128/Downloads/AppImage 1.AppImage + 0x5064)
                                                 ELF object binary architecture: AMD x86-64
FedoraKDE kwin_wayland_wrapper[4404]: open dir error: No such file or directory
FedoraKDE systemd[2757]: Started app-\x2fhome\x2f468128\x2fDownloads\x2fAppImage-122af6a6c3444f8cabdf48484a58dd0a.scope - /home/468128/Downloads/AppImage 1.AppImage.
FedoraKDE systemd[2757]: Started app-org.kde.dolphin-b396e5e405f2437c8adf0fb5dfd95f3d.scope - Dolphin - File Manager.
FedoraKDE kstart5[4356]: Omitting both --window and --windowclass arguments is not recommended
Comment 4 Josh 2023-11-06 15:17:39 UTC
I have the same issue and I'm also using Wayland.

Operating System: Kubuntu 23.04
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.0-24-generic (64-bit)
Graphics Platform: Wayland

Dolphin version: 22.12.3

As reported by others my Appimages open without any issues from the command line or if I launch Dolphin from an icon and not a keyboard shortcut.
Comment 5 Akseli Lahtinen 2023-11-20 11:30:35 UTC
Can't reproduce in Plasma 6 dev

Operating System: Fedora Linux 39
KDE Plasma Version: 5.81.80
KDE Frameworks Version: 5.245.0
Qt Version: 6.6.0
Kernel Version: 6.5.11-300.fc39.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
Comment 6 Patrick Silva 2023-11-20 12:36:34 UTC
Me neither.

Operating System: Arch Linux 
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.245.0
Qt Version: 6.6.0
Graphics Platform: Wayland
Comment 7 Patrick Silva 2023-11-20 12:36:45 UTC
*** Bug 450969 has been marked as a duplicate of this bug. ***
Comment 8 JohnMessy 2023-12-12 16:29:15 UTC
I can reproduce this bug, 

Kubuntu:
plasmashell 5.27.8
framework: 5.110.0
QT: 5.15.10
Kernel: 6.5.0-14-generic

This had been haunting me since an update in Kubuntu 22.04
Comment 9 Josh 2023-12-12 17:02:41 UTC
Same here, I upgraded to Kubuntu 23.10 and the problem persists. New versions:

Operating System: Kubuntu 23.10
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
Kernel Version: 6.5.0-14-generic (64-bit)
Graphics Platform: Wayland
Comment 10 Dennis 2023-12-13 08:55:41 UTC
I can't reproduce it either on plasma6 beta1, the specs of my system:

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.90.90
KDE Frameworks Version: 5.247.0
Qt Version: 6.6.1
Kernel Version: 6.2.0-37-generic (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-8565U CPU @ 1.80GHz
Memory: 15,3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Manufacturer: Dell Inc.
Product Name: XPS 13 9380
Comment 11 David R 2023-12-30 18:33:34 UTC
I have the same issue on Arch.
I came here from a reddit thread : https://www.reddit.com/r/kde/comments/17rcg9i/very_weird_issue_appimages_arent_launching_from/
And if I assign the keyboard shortcut to "dbus-launch dolphin", then I can launch App Images.

Operating System: Arch Linux 
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.11
Kernel Version: 6.6.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 12 izzylaif 2024-03-28 18:38:02 UTC
Could anyone confirm this has been fixed in KDE 6?
The bug is at least 5 years old and it's getting annoying.
Comment 13 Patrick Silva 2024-03-28 19:01:48 UTC
I can't reproduce with Dolphin 24.02.1 started with shortcut meta+e.

Operating System: Arch Linux 
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Graphics Platform: Wayland
Comment 14 David R 2024-03-28 20:07:20 UTC
(In reply to izzylaif from comment #12)
> Could anyone confirm this has been fixed in KDE 6?
> The bug is at least 5 years old and it's getting annoying.

Hi,

Yes, the issue is gone for me in KDE6.
As well as launching Wezterm with keyboard shortcut which was failing 50% of time in KDE5+Wayland.
Comment 15 Josh 2024-03-28 20:25:39 UTC
I'm running Dolphin 23.08.1 on up to date Kubuntu 23.10 and the bug still exists.
Comment 16 David R 2024-03-28 20:30:19 UTC
(In reply to Josh from comment #15)
> I'm running Dolphin 23.08.1 on up to date Kubuntu 23.10 and the bug still
> exists.

When Kubuntu will update to KDE6, it will most likely be fixed.
Comment 17 Méven Car 2024-03-30 12:48:16 UTC
Seeing two confirmation that KDE Framework 6 fixed the issue.
Thanks  Patrick Silva (the best bug reporter out there!) and David R. 
A lot of code regarding application starting has been revamped so this could have been expected.

Please reopen if you encounter the PRECISE same condition, otherwise open a new bug.
Comment 18 Josh 2024-03-30 13:06:06 UTC
For those of us on slow moving distros that won't see KDE 6 for a long time will there be a fix for KDE 5?