Bug 154735 - konsole default profile command replaced by -e commandline switch
Summary: konsole default profile command replaced by -e commandline switch
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-28 08:31 UTC by Jens Dagerbo
Modified: 2007-12-28 12:13 UTC (History)
1 user (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 Jens Dagerbo 2007-12-28 08:31:43 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

This is a bad one. An easily triggered bug that makes Konsole unusable.

If konsole is launched with the -e command line switch to run a command, this command becomes the command run for the default profile.

This means that after simply running "konsole -e ls" konsole can no longer be started, since it will always execute "ls" and quit.

This behavior is also triggered when running any application which has "run in terminal" checked in its desktop file.

To reproduce:
1. Start konsole
2. Inside konsole, run "konsole -e ls"
3. Look in Settings->Edit Current Profile->Command and find that it now says "konsole -e ls"

(4. Remember to clear "Command" before you close konsole)
Comment 1 Jens Dagerbo 2007-12-28 08:33:15 UTC
Forgot to say: This is latest KDE4, revision 753670.
Comment 2 FiNeX 2007-12-28 10:54:06 UTC
Just tried on revision 753714. 
1) Started konsole
2) Inside konsole I've run "konsole -e ls" (it start and quit immediatly)
3) In "settings->edit current profile-> command" I've this "ls", not "konsole -e ls".
4) From the same konsole I've started a new konsole and this has been closed after doing the "ls".
5) I've let "ls" on the command and closed all konsole.
6) I've restarted konsole and... it started correctly: on the "settings->edit current profile->command" I've found the default "/bin/bash"

It seems that the command is modified since the first konsole has been closed.
Comment 3 Robert Knight 2007-12-28 12:13:25 UTC
Fixed in SVN revision #753735.  Command-line arguments are applied to a new hidden profile which inherits from the default profile, instead of changing the default profile directly.