Bug 368750 - konsole starts somehow remembering last command
Summary: konsole starts somehow remembering last command
Status: RESOLVED DUPLICATE of bug 371863
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 16.08.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-13 14:14 UTC by Daniel Morris
Modified: 2017-01-06 17:06 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Morris 2016-09-13 14:14:30 UTC
I'm seeing very confusing behaviour from konsole since recent updates under TumbleWeed
(sorry can't isolate as a I applied a few together).

konsole when launched from Plasma's menu seems to start running the last
"command", which typically for me is mutt (I have kbiff configured with Mail Client setup as 'konsole --profile Email --title Kbiff_Mutt -e /usr/bin/mutt'). 

If I force a new konsole to launch (say from krunner with 'konsole --profile Shell') then the next time I launch from the menu-favourite or menu->system->konsole then I get a proper terminal, whereas if I've checked my mail from kbiff then the favourite and menu entry will launch konsole with mutt, and when I quit mutt's pager so the konsole instance closes.

Reproducible: Always
Comment 1 Dan Haworth 2016-09-20 08:42:14 UTC
I'm seeing this too with 16.08.1 when launching konsole from the revelation password manager as one of its "goto commands". Konsole will work just fine until I launch an ssh session from revelation (which runs konsole -e "ssh -l username hostname"), konsole opens the ssh session just fine but from then on every time I select konsole from the menu, or from the run bar, it launches the ssh command and not a shell. I have to restart plasma to get functionality back again.

Interestingly there also appears to be an issue with the handling of the -e argument, the help details "Command to execute. This option will catch all following arguments, so use it as the last option." however this appears to no longer be the case:

dan@dan.xigen.co.uk ~ $ konsole -e ssh -l username hostname.tld
Unknown option 'l'.

I had to add double quotes around the ssh part of the call, and when this was done konsole started exhibiting the behaviour detailed above.
Comment 2 Dan Haworth 2016-09-20 08:43:24 UTC
Interestingly, after the above behaviour starts happening.. running konsole from an already open shell works just fine, it is just when launching from the menu or the run bar.
Comment 3 Wolfgang Bauer 2016-11-18 11:29:20 UTC
(In reply to Dan Haworth from comment #1)
> Interestingly there also appears to be an issue with the handling of the -e
> argument, the help details "Command to execute. This option will catch all
> following arguments, so use it as the last option." however this appears to
> no longer be the case:

That's a known problem caused by the port to Qt's QCommandLineParser (which doesn's support such "rest of the line" parameters), see bug#366793.

The original problem seems to be a duplicate of bug#371863 though, which is fixed in 16.12.0. (I'm about to submit the fix to Tumbleweed btw)
Comment 4 Wolfgang Bauer 2016-11-18 11:35:38 UTC
(In reply to Wolfgang Bauer from comment #3)
> The original problem seems to be a duplicate of bug#371863 though, which is
> fixed in 16.12.0. (I'm about to submit the fix to Tumbleweed btw)

Closing as duplicate...

*** This bug has been marked as a duplicate of bug 371863 ***
Comment 5 Dan Haworth 2016-11-18 11:44:29 UTC
That's wonderful, and really helps my daily workflow. Thanks for all your efforts!
Comment 6 Daniel Morris 2017-01-06 11:37:12 UTC
Thanks for the fix and pushing into tumbleweed.