Bug 163750

Summary: No --ls command line option
Product: [Applications] konsole Reporter: Ian Mortimer <ian>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 2.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ian Mortimer 2008-06-11 05:40:09 UTC
Version:           2.0 (using KDE 4.0.4)
Installed from:    Fedora RPMs
OS:                Linux

The very useful --ls command line option has disappeared from konsole in kde4.  With previous versions I could make a login shell the default for all users by adding --ls to the Exec= line in /usr/share/applications/kde/konsole.desktop
Comment 1 Robert Knight 2008-06-11 16:38:05 UTC
There are two ways to do this in KDE 4:

1.  Add a command-line option to Konsole to run a login shell by default (any environment variables will be expanded at runtime):

Exec=konsole -e $SHELL --login

2.  Changing the settings in the default profile (/usr/share/apps/konsole/Shell.profile) to run a login shell.

Under the '[General]' section, set the Command to:

Command=$SHELL --login

The second approach is preferred because it won't interfere with users if they create their own profiles to run different commands.
Comment 2 Ian Mortimer 2008-06-12 00:28:43 UTC
With kde 4.0.4 on Fedora 9 it's:

/usr/share/kde4/apps/konsole/Shell.profile

Works perfectly.  Thanks for the advice.
Comment 3 Robert Knight 2008-07-13 02:27:23 UTC
Proposed solution works for reporter.