SUMMARY I have zsh as my default shell. Konsole and the other kparts (Kate, Yakuake) correctly source .zshrc at startup, but Dolphin doesn't when it is restoring at startup. STEPS TO REPRODUCE 1. Have zsh as your default shell and something distinctive in .zshrc 2. Open dolphin and make sure the terminal panel is open (.zshrc should be correctly sourced at this point) 3. Log out and back in, the dolphin window should be restored OBSERVED RESULT The session in the terminal panel has not sourced .zshrc EXPECTED RESULT The terminal panel should have .zshrc correctly sourced SOFTWARE/OS VERSIONS KDE Plasma Version: 5.15.5 KDE Frameworks Version: 5.57.à Qt Version: 5.12.12 ADDITIONAL INFORMATION zsh 5.5.1
Hi, I can confirm this bug. Sourcing .zshrc in the terminal works fine. It also loads fine if I exit the session, by typing exit in the terminal, and load it again with F4. SOFTWARE/OS VERSIONS KDE Plasma Version: 5.19.5 KDE Frameworks Version: 5.73.0 Qt Version: 5.15.0 ADDITIONAL INFORMATION zsh 5.8
*** Bug 425141 has been marked as a duplicate of this bug. ***
*** Bug 426076 has been marked as a duplicate of this bug. ***
I have same issue
I have the same problem. If you configure dolphin so that it does not restore the last session and always open by default HOME directory, dolphin's terminal sources .zshrc file correctly.
I have the same issue with my .bashrc not being loaded, so it appears to not be limited to zsh. Changing the setting to always open $HOME in new sessions fixes it.
*** Bug 432037 has been marked as a duplicate of this bug. ***
I have same issue with zsh too
I also have the issue with bash in dolphin version 20.12.2
I also have the issue with bash in dolphin version 20.12.3 Dolphin services should restore After previous tabs did. At first glance dolphinmainwindow.cpp#DolphinMainWindow::setupActions seems to activate Tabs after opening terminal, though I see no reason for this. Unfortunately I have no resources to contribute right now.
i have the same issue
(In reply to Dominik Kummer from comment #10) > I also have the issue with bash in dolphin version 20.12.3 > > Dolphin services should restore After previous tabs did. > > At first glance dolphinmainwindow.cpp#DolphinMainWindow::setupActions seems > to activate Tabs after opening terminal, though I see no reason for this. > Unfortunately I have no resources to contribute right now. Today it did work on KDE Frameworks 5.80.0 Qt 5.15.2 (built against 5.15.2)
My suggestion: When Dolphin is closed, its terminal panel/console is automatically closed or completely reset. You start Dolphin and should manually click F4 to open the console and ZSH looks correct.
I have the same problem, but it's not ONLY when the session is restored. (as far as I can understand, if here "log-in/log-out" is being referred to as session) If Dolphin is setup such that the terminal is already showing, .zshrc does not get sourced, even if you close and open Dolphin multiple times without logging out. (In reply to Zesko from comment #13) > You start Dolphin and should manually click F4 to open the console and ZSH > looks correct. I can confirm that this works as (annoying) workaround, and it does not matter that I'm not in my $HOME. SOFTWARE/OS VERSIONS KDE Plasma Version: 5.22.0 KDE Frameworks Version: 5.82.0 Qt Version: 5.15.2 Dolphin Version: 21.04.2 ADDITIONAL INFORMATION zsh 5.8
Same here with bash and Dolphin 21.04.3. As others have said, this is indeed related to this setting: "Show on startup: Folders, tabs and window state from last time" If I change this to a fixed location (as a workaround), it works.
I've recently experienced a loss of my .bash_history records and traced it to this bug. My .bash_history was truncated from 2.5M to about 24k (default size) several times, until I was able to pinpoint dolphin as the source of this problem. Given the user file corruption consequence, I think the relevant dolphin code should be disabled until the fix is available.
(In reply to Sergey Frolov from comment #16) > I've recently experienced a loss of my .bash_history records and traced it > to this bug. > My .bash_history was truncated from 2.5M to about 24k (default size) several > times, until I was able to pinpoint dolphin as the source of this problem. > > Given the user file corruption consequence, I think the relevant dolphin > code should be disabled until the fix is available. Wow, I also regularly lose my zsh history, would've never guessed it is caused by this bug...
Can confirm this affects zsh still. I tried to replicate it in the latest KDE Neon (dev) using both bash and zsh. To see if the rc file was sourced, I placed the command "touch ~/test" inside it. In bash: When starting dolphin and the konsole is closed, the test file isn't created until I open the terminal (with a button or via F4). When starting dolphin and the konsole is open from the previous session (session being the last time I had dolphin open), the test file is immediately created. Repeatedly opening and closing the terminal doesn't create the test file again in either case (so the rc is only sourced once). -> This is entirely the expected behavior. In zsh: When starting dolphin and the konsole is closed, behavior is identical to bash. When starting dolphin and the konsole is open from the previous session, no test file is created. Repeatedly opening and closing the terminal doesn't create the test file again (or at all, in case 2). -> When starting dolphin with konsole set to open, initializing the z-shell with its corresponding zshrc file is skipped. -> This is the bug. Skipping the rc file also ruins prompts and aliases, since it leaves you with a completely bare-bones un-configured shell, which is borderline unusable. The only workaround is to close the embedded konsole and restart dolphin.
Believe I'm seeing the same issue using fish shell. Plasma 5.18.6
Created attachment 144882 [details] Dolphin after just started. Dolphin shows zsh with the default config.
Created attachment 144883 [details] Dolphin after sourcing zshrc. After sourcing zshrc, the terminal panel behaves as expected.
Same here. However, in my case Dolphin never loads zshrc for the terminal panel; no matter the situation. Please refer to the attachments provided: Dolphin after just started, and Dolphin after sourcing zshrc. Konsole or Yakuake work as expected. === $ inxi CPU: quad core Intel Core i7-7700 (-MT MCP-) speed/min/max: 800/800/4200 MHz Kernel: 5.15.7-1-MANJARO x86_64 Up: 4d 22h 53m Mem: 5369.0/32064.3 MiB (16.7%) Storage: 465.76 GiB (77.4% used) Procs: 259 Shell: Zsh inxi: 3.3.11 $ uname -a Linux baltasar-pc 5.15.7-1-MANJARO #1 SMP PREEMPT Wed Dec 8 10:09:19 UTC 2021 x86_64 GNU/Linux $ cat /etc/passwd | grep baltasarq baltasarq:x:1000:1000:Baltasar:/home/baltasarq:/bin/zsh ===
*** This bug has been marked as a duplicate of bug 279614 ***