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?
> 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?
I, for example, run Fortune through .bash_profile. I use .bash_profile for this because .bashrc is not supposed to generate output.
> because .bashrc is not supposed to generate output. Who says that? Why shouldn't an interactive shell generate output?
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
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.
According to the comments in my provided bashrc, if it generates output it will break the scp and rcp commands.
*** This bug has been confirmed by popular vote. ***
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.
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!
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.
*** Bug 190001 has been marked as a duplicate of this bug. ***
*** Bug 191781 has been marked as a duplicate of this bug. ***
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.
*** Bug 250507 has been marked as a duplicate of this bug. ***
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.
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