Bug 137031

Summary: options -profile and -e do not work together
Product: [Applications] konsole Reporter: Ferdinand Gassauer <gassauer>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal CC: ietc
Priority: NOR    
Version: 1.6.5   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ferdinand Gassauer 2006-11-08 11:29:50 UTC
Version:           1.6.5 (using KDE 3.5.5 "release 19.1" , openSUSE )
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.16.21-0.25-default

Hi!

the -e options seems to work only if no other option is given

konsole --profile <name> -e ssh <server>
opens a local shell instead of ssh to the server

konsole -e ssh <server> works
Comment 1 Philip Rodrigues 2006-11-09 19:31:20 UTC
I can confirm on r601002
Comment 2 ietc 2007-03-11 03:34:54 UTC
Confirm the same on 1.6.5 using KDE 3.5.5 on Gentoo.

I think that it may be because a line in the profile overrides the command you give via '-e'; for example:

~/.kde/share/apps/konsole/profiles/ProfileName:
[1]
...
Pgm0=/bin/bash

I should note that I have not been able to change this line to successfully start Konsole logged into an SSH account, either.
Comment 3 Robert Knight 2007-03-13 13:32:11 UTC
Fixed in Subversion.  Example of usage with -e and --profile:

konsole --profile 2shells -e ssh user@hostname