Bug 486102

Summary: Useractions/run in terminal does not work in a wayland session
Product: [Applications] krusader Reporter: bzanetti <bzanetti00>
Component: generalAssignee: Krusader Bugs Distribution List <krusader-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: krusader-bugs-null
Priority: NOR    
Version First Reported In: 2.8.0   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Patch to run konsole without the --title option

Description bzanetti 2024-04-25 09:05:31 UTC
Created attachment 168891 [details]
Patch to run konsole without the --title option

SUMMARY
Krusader executes useractions in terminal "konsole" (when configured to do so) with the option --title "some string".
Unfortunately it seems that konsole does not allow such option any more and therefore it does not start at all.

STEPS TO REPRODUCE
1. Define a new useraction from Useractions->Manage Useractions...
2. In "Execution Mode" set "Run in terminal"
3. Run the useraction defined above

OBSERVED RESULT
Nothing happens. When krusader is started from terminal the following message is printed:
konsole: Unknown option 'title'.

EXPECTED RESULT
The command defined in the useraction is run in a new terminal instance.

SOFTWARE/OS VERSIONS
Windows: n.a.
macOS: n.a.
Linux/KDE Plasma: Debian 12
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Still present in krusader 2.8.1
Patch attached with a possible workaround
Comment 1 bzanetti 2024-05-24 10:04:10 UTC
Well, it turned out the --title option is a valid alias of --qwindowtitle qt option valid in a X11 session but not in a Wayland one.

And forget about that silly patch: the command to run the terminal in user actions is indeed configurable in Settings->Configure Krusader...->User Actions. Replace --title with --qwindowtitle (or remove --title %t) and it works in both X11 and Wayland session.

Marking as RESOLVED then.