Bug 425141 - Setting startup folder to "state from last time" makes .zshrc not load
Summary: Setting startup folder to "state from last time" makes .zshrc not load
Status: RESOLVED DUPLICATE of bug 407990
Alias: None
Product: dolphin
Classification: Applications
Component: panels: terminal (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: HI normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2020-08-08 15:05 UTC by Magnus Boman
Modified: 2022-03-11 13:17 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
works for me on master. (169.25 KB, image/png)
2020-08-20 15:49 UTC, tcanabrava
Details
Still broken, commit 257eeebf4 (13.20 KB, image/png)
2020-08-20 17:16 UTC, Magnus Boman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Boman 2020-08-08 15:05:25 UTC
SUMMARY
When having "Show on startup" set to "Folders, tabs, and windows state from last time" and opening the terminal, the .zshrc will not have been loaded and I'm greeted with a default zsh session. Manually sourcing .zshrc works.

Setting it manually (to anything) works as intended.
I was not able to test with bash since I can't get dolphin to acknowledge I've changed shell.


STEPS TO REPRODUCE
1. Set "Show on startup" to "Folders, tabs, and windows state from last time"
2. Restart dolphin
3. Open terminal and see a default zsh prompt

OBSERVED RESULT
Default prompt is displayed (.zshrc not loaded)
main%  cd /
main%  cd /home/
main%  cd /home/katt
main% 

EXPECTED RESULT
My custom .zshrc to be loaded
katt@main ~ ยป 

SOFTWARE/OS VERSIONS
Linux: 5.8.0-zen1-1-zen
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.73.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
Dolphin 20.07.90 wasn't in the list but I've tested both 20.07.90 and git master (97a14db70)
Comment 1 Nishith Khanna 2020-08-16 11:19:38 UTC
I have the same issue. When Folder, tabs and window state from last time option is enabled zshrc doesn't load. This update started happening after latest kde apps update i.e 20.08

System Info:
Operating System: Arch Linux
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.73.0
KDE Apps Version: 20.08
Qt Version: 5.15.0
Comment 2 Nishith Khanna 2020-08-16 11:22:05 UTC
Typo Edit - This issue started happening after latest kde apps update i.e 20.08
Comment 3 Evan 2020-08-20 08:42:16 UTC
I can confirm this affects me too and just started happening after the update to 20.08.0. The workaround of setting the home folder in "Show on startup:" in Dolphin's startup preferences fixes the problem.
Comment 4 Nate Graham 2020-08-20 14:49:11 UTC
Unclear whether this is a problem in Dolphin or in the Konsole KPart, and where we could fix it. Tomaz, any ideas?
Comment 5 tcanabrava 2020-08-20 15:47:55 UTC
Nate, no, no ideas yet.
on the konsole side we haven't changed anything that could trigger this. I'll need to test.
Comment 6 tcanabrava 2020-08-20 15:49:40 UTC
Created attachment 131043 [details]
works for me on master.

works for me on master.
Comment 7 Magnus Boman 2020-08-20 17:16:34 UTC
Created attachment 131049 [details]
Still broken, commit 257eeebf4

Still broken on my end, running latest git.
Comment 8 Nico Lynzaad 2020-08-29 10:27:53 UTC
I have the same issue. When Folder, tabs and window state from last time option is enabled zshrc doesn't load. This does however seem to only happen when I close dolphin with the konsole open and then re-open dolphin.

On a side note when restore Folder, tabs and window state is selected and I close the konsole before closing dolphin and then re-open dolphin and then only the console you can see a flicker from where the default zsh is showing and when zrhrc is loaded but it loads successfully. This does not happen when restore Folder, tabs and window state is not selected.

It almost seems like it is trying to cd to the last used folder while still loading the zshrc or vice versa.

System Info:
Operating System: Manjaro Linux
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.73.0
Qt Version: 5.15.0
Kernel Version: 5.8.3-2-MANJARO
OS Type: 64-bit
Comment 9 fe27 2020-09-02 12:05:35 UTC
I have the same problem since 20.08.0. Not having found this bugreport I have posted on on my own, which I will mark as duplicate to this one: https://bugs.kde.org/show_bug.cgi?id=426076

OBSERVED RESULT:
only when $ZDOTDIR is set the sourcing fails.
When manually sourcing in the konsole panel it works as expected.
Standalone Konsole works as expected.

Sorry for the messy duplicate.
Comment 10 fe27 2020-09-02 12:06:55 UTC
*** Bug 426076 has been marked as a duplicate of this bug. ***
Comment 11 gulp21 2020-09-06 20:01:08 UTC
Could this bug have the same cause as https://bugs.kde.org/show_bug.cgi?id=407990, which is about session restore? I remember to have experienced this bug before 20.08, but only in connection with session restore. Since 20.08, I experience this bug whenever Dolphin is started with the terminal pane opened.
Comment 12 Nate Graham 2020-09-06 23:25:05 UTC
Sure looks like it, thanks. I guess it was a pre-existing bug that god worse since we're using session restore by default now.

*** This bug has been marked as a duplicate of bug 407990 ***
Comment 13 Alejandro 2022-03-11 13:17:49 UTC
There is a workaround as mentioning here:

"The workaround is to choose a specific folder in the startup section of the dolphin settings. I hope that's useful for someone else."

https://www.reddit.com/r/kde/comments/icpqye/dolphin_not_running_the_default_shell_after_update/