Created attachment 162014 [details] This is what I see when I open a new tab from a tab which is root SUMMARY *** NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** STEPS TO REPRODUCE 1. Open a tab, and type `sudo -i` 2. From that tab, open a new tab 3. OBSERVED RESULT New tab fails with permission errors. Furthermore, when I exit the root shell in that tab, any further attempts to open a new tab still fails with the same error. EXPECTED RESULT A new tab should open as usual to the user's home directory SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.27.8 KDE Frameworks Version: 5.110.0 Qt Version: 5.15.0 ADDITIONAL INFORMATION
A possibly relevant merge request was started @ https://invent.kde.org/utilities/konsole/-/merge_requests/961
*** This bug has been marked as a duplicate of bug 470262 ***
Git commit e4840a2e7cbf006821fbbac5128eaaf585f8125a by Kurt Hindenburg, on behalf of Christian Muehlhaeuser. Committed on 15/03/2024 at 21:06. Pushed by hindenburg into branch 'master'. Fallback to home dir if initial working dir is inaccessible In cases where the initial working is inaccessible by the current user, we should fallback to their home directory. This can easily be triggered by changing the working dir to an otherwise inaccessible dir for the current user (e.g. /etc/sudoers.d inside a root shell), followed by opening a new session. Related: bug 470262, bug 469249 M +3 -1 src/session/Session.cpp https://invent.kde.org/utilities/konsole/-/commit/e4840a2e7cbf006821fbbac5128eaaf585f8125a