Bug 504097 - Launcher entry for Godot, created using Menu Editor, silently fails to start when using Krunner but works in Application Launcher
Summary: Launcher entry for Godot, created using Menu Editor, silently fails to start ...
Status: REPORTED
Alias: None
Product: krunner
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.3.5
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-12 13:07 UTC by chniucg
Modified: 2025-05-20 16:05 UTC (History)
5 users (show)

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


Attachments
with krunner it does not start, but with the menu it does (2.26 MB, video/mp4)
2025-05-12 13:07 UTC, chniucg
Details
krunner replace (891.27 KB, video/mp4)
2025-05-14 08:19 UTC, chniucg
Details
Menu Editor Entry (82.09 KB, image/png)
2025-05-19 16:32 UTC, chniucg
Details
Menu editor working (68.33 KB, image/png)
2025-05-19 16:42 UTC, chniucg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chniucg 2025-05-12 13:07:23 UTC
Created attachment 181211 [details]
with krunner it does not start, but with the menu it does

SUMMARY
KRunner does not execute custom added applications, while the menu does

STEPS TO REPRODUCE
1. Open menu editor and add new entry
2. Add this kind of configuration

[Desktop Entry]
Comment=
Exec=/home/username/.godot/4.4.1/godot
GenericName=A 2D and 3D Game Engine
Icon=/home/username/.godot/icon.png
Name=Godot 4.4.1 (C#/.NET)
NoDisplay=false
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=

3. Try to start it using krunner

OBSERVED RESULT
Krunner closes, but does not start, or at least it seems, the application

EXPECTED RESULT
The application should start just like in the menu

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.6-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD Ryzen 7 9800X3D 8-Core Processor
Memory: 64.9 GB of RAM
Graphics Processor 1: AMD Radeon RX 7900 XT
Graphics Processor 2: AMD Radeon Graphics

ADDITIONAL INFORMATION
A recording can be found as a attachment. Other applications start through krunner
Comment 1 Nate Graham 2025-05-13 19:00:26 UTC
can you run `krunner --replace` in a terminal window and try again? Then see if anything suspicious is printed to the terminal window when you attempt to use KRunner to launch this app and it fails.

Thanks!
Comment 2 chniucg 2025-05-14 08:19:41 UTC
Created attachment 181277 [details]
krunner replace
Comment 3 chniucg 2025-05-14 08:20:05 UTC
(In reply to Nate Graham from comment #1)
> can you run `krunner --replace` in a terminal window and try again? Then see
> if anything suspicious is printed to the terminal window when you attempt to
> use KRunner to launch this app and it fails.
> 
> Thanks!

There seems to be no output at all. I've recorded it. Here and added the video to the attachments
Comment 4 Nate Graham 2025-05-14 16:54:00 UTC
Darn. Thanks for trying anyway!

Does the same thing happen using the Kickoff application launcher/start menu? Or is it specific to only KRunner itself?
Comment 5 chniucg 2025-05-14 17:29:40 UTC
(In reply to Nate Graham from comment #4)
> Darn. Thanks for trying anyway!
> 
> Does the same thing happen using the Kickoff application launcher/start
> menu? Or is it specific to only KRunner itself?

Unfortunately I had to reinstall my computer, so I can no longer test things. I'll try to reproduce it.
However to answer your question: In every other menu the application was just started fine. Only when calling through KRunner nothing happened. Note that other applications worked within KRunner...
Comment 6 chniucg 2025-05-14 20:25:09 UTC Comment hidden (spam)
Comment 7 John Kizer 2025-05-19 04:33:39 UTC
Hi - just to double-check, is this issue occurring with any application entries that were created using the Menu Editor, or was it only specific ones? If it was the latter, are there examples you could share of ones that did work?

Thanks!
Comment 8 chniucg 2025-05-19 11:30:52 UTC
(In reply to John Kizer from comment #7)
> Hi - just to double-check, is this issue occurring with any application
> entries that were created using the Menu Editor, or was it only specific
> ones? If it was the latter, are there examples you could share of ones that
> did work?
> 
> Thanks!

It has only happened with godot. Here is my desktop file:

 [Desktop Entry]
Comment=
Exec=/home/ivo/.godot/godot
GenericName=A 2D and 3D Game Engine
Icon=/home/ivo/.godot/godot.png
Name=Godot 4.4.1 (C#/.NET)
NoDisplay=false
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=
Comment 9 John Kizer 2025-05-19 16:17:32 UTC
Thanks! And do you have an example you could share of an entry you've created in the menu editor that does launch successfully through Krunner?
Comment 10 chniucg 2025-05-19 16:32:28 UTC
Created attachment 181527 [details]
Menu Editor Entry
Comment 11 chniucg 2025-05-19 16:42:28 UTC
(In reply to John Kizer from comment #9)
> Thanks! And do you have an example you could share of an entry you've
> created in the menu editor that does launch successfully through Krunner?

Here you go:
[Desktop Entry]
Comment=
Exec=/home/ivo/test.sh
Name=Test
NoDisplay=false
Path=
PrefersNonDefaultGPU=false
StartupNotify=true
Terminal=true
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=

I've also added screenshots of the entries inside the menueditor
Comment 12 chniucg 2025-05-19 16:42:53 UTC
Created attachment 181528 [details]
Menu editor working
Comment 13 Kai Uwe Broulik 2025-05-19 16:47:20 UTC
Is it possible Kruenner requires the execute bit on the file?
Comment 14 chniucg 2025-05-19 18:02:40 UTC
(In reply to Kai Uwe Broulik from comment #13)
> Is it possible Kruenner requires the execute bit on the file?

The file is executable:

➜  4.4.1 la      
total 123M
-rw-r--r-- 1 ivo users  112 19. May 18:19 blender
-rwxr-xr-x 1 ivo users 123M 26. Mar 08:42 godot
drw-r--r-- 4 ivo users 4,0K 26. Mar 01:40 GodotSharp

and it does launch when using the default launcher or executing the desktop file manually. Only krunner does not execute it
Comment 15 John Kizer 2025-05-20 00:05:59 UTC
Thanks - this seems to be a tricky one!
Comment 16 chniucg 2025-05-20 08:35:22 UTC
(In reply to John Kizer from comment #15)
> Thanks - this seems to be a tricky one!

This issue is reproducible in the 6.4 beta. 
I can also reproduce it after reinstalling my OS.