Red Hat Bugzilla – Bug 858587
The working directory for Konsole is $HOME/Documents/ and not $HOME on Fedora 18 Alpha TC5 (up to date)
Last modified: 2012-09-19 11:18:26 EDT
Description of problem:
When konsole, xterm, etc is open, the default "pwd" is /home/user/Documents/ and not the tradicional /home/user/ path
Version-Release number of selected component (if applicable):
Fedora 18 Alpha KDE TC5 up to date
Steps to Reproduce:
1.Open a terminal emulator
Deleting all users (less root) and creating a new user, the problem persist
Isn't that terminal just changing your working directory to ~/Documents? Or isn't there something in any of bashrc files?
Please, provide me an output of:
(In reply to comment #1)
> Isn't that terminal just changing your working directory to ~/Documents? Or
> isn't there something in any of bashrc files?
> Please, provide me an output of:
> echo $HOME
No idea, if is a bug of bash or xterm, konsole, etc. I just report the error that i can see.
On a fresh install (now) using LiveCD KDE F18 Alpha, the same error again.
1.- alt+f2, xterm, intro = /home/user/Documents prompt
2.- echo $HOME = /home/nix
3.- pwd = /home/nix/Documents
Attach screenshot with identical steps
Created attachment 614306 [details]
Modifing the "initial directory" on konsole, is solved, but, only on konsole, xterm no, so, is a system-wide variable that affect to all terminal emulators
Reassigning to Konsole
This is not a bug, it's expected behavior. You can change default directory for konsole, xterm and others by setting "Document Path" in System Settings -> Account Details -> Paths.
Aha, changing the path of Documents, xterm and others are like the clasic terminal. But, the KDE settings are not relationed with this, of yes?. I have a box with F17 and the paths are configured by default, /home/user/documents, but when i open a terminal, the default directory is /home/user, no /home/user/documents
Sorry, I misunderstand the bug report, the problem is that working directory is set to ~/Documents instead of ~ when running program (konsole, xterm, ...) from krunner, right?
So, as I said on IRC:
* The fact that the default working directory on application startup is ~/Documents is a feature, not a bug, see (non-)bug #571837.
* You also cannot expect the KDE Plasma Workspaces to automatically figure out that xterm is a terminal emulator. We are not going to hardcode a list of terminal emulators.
* What should, however be done, is for Konsole and xterm to specify ~ as the startup working directory, either in their .desktop file or elsewhere. For some reason, Konsole appears to start up in ~ on F16 and F17, but I cannot find where this is set, so I don't know what changed in F18 Alpha.
There's already a bug filed for the Konsole behavior change, I reopened it.
*** This bug has been marked as a duplicate of bug 841471 ***