Bug 54663 - No way to set login shell as default (commandline switch only)
Summary: No way to set login shell as default (commandline switch only)
Status: RESOLVED INTENTIONAL
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 190001 191781 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-15 03:21 UTC by Ohad Lutzky
Modified: 2011-10-23 13:21 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ohad Lutzky 2003-02-15 03:21:05 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Gentoo Packages
Compiler:          gcc version 2.95.3 20010315 (release) 
OS:          Linux

Many people want to use Konsole for a login shell, and while this is achievable through the --ls switch (which is buried deep in the documentation, and isn't explained at all), it should also be a setting in the menu, so that no matter how you start a konsole (from within Konqueror, for example) it would be a login shell. Gnome-terminal has this, and an option for aterm can be saved in ~/.Xresources - why shouldn't this option be available in Konsole?
Comment 1 Stephan Binner 2003-02-16 23:54:25 UTC
> why shouldn't this option be available in Konsole? 
 
Why want people run login shells? Just because they put their initializiations into 
the wrong configuration file because they misunderstood the concept? 
Comment 2 Ohad Lutzky 2003-02-17 13:25:44 UTC
I, for example, run Fortune through .bash_profile. I use .bash_profile for this 
because .bashrc is not supposed to generate output. 
Comment 3 Stephan Binner 2003-02-17 21:17:00 UTC
> because .bashrc is not supposed to generate output. 
 
Who says that? Why shouldn't an interactive shell generate output? 
Comment 4 Ohad Lutzky 2003-02-18 12:31:11 UTC
In Gentoo Linux, /etc/skel/.bashrc: 
# Make sure there's no output from this file 
# If you want the right login shell, use xterm*loginShell in 
# ~/.Xresources 
Comment 5 Kurt Hindenburg 2005-01-29 19:23:14 UTC
http://www.gnu.org/software/bash/manual/bashref.html has a lot of info.

I'm not sure how ugly it would be to get Konsole to read .Xresources and view xterm*loginShell.
Comment 6 Donnie Berkholz 2006-04-06 20:40:54 UTC
According to the comments in my provided bashrc, if it generates output it will break the scp and rcp commands.
Comment 7 Xabi Ochotorena 2006-10-10 17:20:13 UTC
*** This bug has been confirmed by popular vote. ***
Comment 8 Zbigniew Luszpinski 2007-05-24 16:10:00 UTC
I think konsole --ls should be deafult behaviour. There are many useful settings prepared for users by sysadmin in ~/.bashrc ~/.bash_profile

Or at least add switch inside konsole configuration to enable/disable --ls without needing to change all shortcuts in KDE menus and icons for all users.
Comment 9 Tom Browder 2007-10-03 23:10:09 UTC
I have just spent several hours trying to figure why my 'chsh' command didn't work.  I have had to reconfigure my desktop several times and just now discovered the extra commands to the various types of terminal.  Please let the default command terminals reflect the current shell!
Comment 10 Ian Mortimer 2008-06-11 05:42:50 UTC
Even the --ls commandline option is now gone in kde4 (konsole 2.0).  A request to get it back is now posted as BUG# 163750.
Comment 11 Robert Knight 2009-04-19 18:37:13 UTC
*** Bug 190001 has been marked as a duplicate of this bug. ***
Comment 12 Robert Knight 2009-05-06 16:02:09 UTC
*** Bug 191781 has been marked as a duplicate of this bug. ***
Comment 13 Jekyll Wu 2011-07-28 11:48:44 UTC
I don't think it's a good idea to run login shell in konsole just because some useful commands or settings are, mistakenly , put into ~/.bash_profile or ~/.zshprofile . Except for PATH, umask, ulimit, etc, most stuff should go to ~/.bashrc, ~/.zshrc or ~/.xprofile.

If I really, occaisonally, need to run login shell in konsole, I will create a new profile which contains the explicit command to start a login shell, such as 'bash -l', 'zsh -l' and 'tcsh -l'.

By the way, I just tried to ask gnome-terminal-3.0.1 to start bash as login shell while my default shell is zsh. It did start bash, but 'shopt login_shell' told me it was not a login bash.
Comment 14 Jekyll Wu 2011-07-31 13:13:50 UTC
*** Bug 250507 has been marked as a duplicate of this bug. ***
Comment 15 Kurt Hindenburg 2011-09-15 13:19:50 UTC
I agree w/ comment #13 and the notes in https://bugs.kde.org/show_bug.cgi?id=163750.

If users want a login shell, they can use a new profile with that command specified or use the info in bug 163750.

Some notes in the docs could be put in noting such.
Comment 16 Jekyll Wu 2011-10-23 13:16:18 UTC
Git commit bf49d2423b810d72cf3c0209ab84799ead51505c by Jekyll Wu.
Committed on 23/10/2011 at 11:37.
Pushed by jekyllwu into branch 'master'.

Add another common issue about running login shell in konsole

CCBUG: 54663

M  +8    -0    doc/manual/index.docbook

http://commits.kde.org/konsole/bf49d2423b810d72cf3c0209ab84799ead51505c