Bug 373186

Summary: Krunner runs wrong konsole session
Product: [Plasma] krunner Reporter: Rafal Lalik <rafallalik>
Component: generalAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED WORKSFORME    
Severity: normal CC: alexander.lohnau
Priority: NOR    
Version First Reported In: 5.8.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: htop output showing the bug

Description Rafal Lalik 2016-12-02 12:55:55 UTC
Hi,

first of all I don't know how to formulate the topic for this problem, maybe you can rephrase it. Problem is following:

I have custom scripts which runs a konsole session with predefined command to execute: konsole -e "cmd". I use it to call remote ssh session, but for simplicity I will use example with gdb which also reproduces my problem.

so my custom scripts looks following:

-- CUT HERE -- ~/bin/kons_gdb --
#!/bin/bash

konsole -e "gdb"
-- END --

Then I have desktop entry for the runner for this script:

-- CUT HERE -- ~/.local/share/applications/kgdb.desktop --
[Desktop Entry]
Comment=
Exec=/home/user/bin/kons_gdb
GenericName=GDB in Konsole demo
Name=kons_gdb
NoDisplay=false
Path[$e]=
StartupNotify=true
Terminal=0
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=
-- END --

Now, following steps should reproduce my problem:

1. Invoke krunner (Alt+F2) and type: konsole
   Konsole window should open

2. Invoke krunner and type: kons_gdb
   Konsole window with gdb should open

3. Invoke krunner and type: konsole
   Konsole window with gdb is open, but normal konsole should be started

4. Close windows open is steps 2 and 3

5. Invoke krunner and type: konsole
   Again gdb is seen

6. Close windows open in 5 and 1

7. Invoke krunner and type: konsole
   Normal konsole is open

At this moment I don't know whether krunner invokes wrong *.desktop entry (kons_gdb instead of konsole) or konsole somehow remember the last -e "cmd" option and calls it.

Rafal
Comment 1 Pedro Arthur Duarte (aka JEdi) 2017-01-17 20:31:50 UTC
Created attachment 103469 [details]
htop output showing the bug

This attachment shows three konsole processes. The first one was created through Intellij external tool facility. The other two processes were created through krunner using only "konsole" as input. It seems that the two new instances copied the arguments used to start the first one. Besides that, I can read the environment variables of the first process in all other konsole windows.
Comment 2 Alexander Lohnau 2020-10-15 19:32:00 UTC
Is this still an an issue? TBH I find the problem really confusing, it might be related to BUG 417050
Comment 3 Bug Janitor Service 2020-10-30 04:33:26 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2020-11-14 04:34:02 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!