Created attachment 158613 [details] reproduce the bug 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 *** Creating a new tab or split view shows the following error msg if current tab is using or has used ssh program. ``` Warning: Could not start program '/usr/bin/zsh' with arguments ''. Warning: chdir: Permission denied ``` STEPS TO REPRODUCE 1. ssh to a host 2. open new tab 3. show error msg OBSERVED RESULT EXPECTED RESULT SOFTWARE/OS VERSIONS Linux: 5.15.0-67-generic (64-bit) KDE Plasma Version: 5.27.4 KDE Frameworks Version: 5.105.0 Qt Version: 5.15.9 ADDITIONAL INFORMATION
It seems that only ssh to an OpenBSD host can cause this problem....
Is /usr/bin/zsh the shell on your OpenBSD box by any chance? I have tried to replicate this on my Arch box, but failed to succeed for now. Admittedly though i only tried to ssh to myself for these first tests. I may set up a more complex test environment in the next days though.
(In reply to Alfonso Murolo from comment #2) > Is /usr/bin/zsh the shell on your OpenBSD box by any chance? > > I have tried to replicate this on my Arch box, but failed to succeed for > now. Admittedly though i only tried to ssh to myself for these first tests. > I may set up a more complex test environment in the next days though. Yes, I changed my default shell to /usr/local/bin/zsh on OpenBSD. And I tested that using the original default /bin/ksh did not cause any issues. I think that the shell inside an SSH connection typically should not affect the host konsole.
(In reply to Alfonso Murolo from comment #2) > Is /usr/bin/zsh the shell on your OpenBSD box by any chance? > > I have tried to replicate this on my Arch box, but failed to succeed for > now. Admittedly though i only tried to ssh to myself for these first tests. > I may set up a more complex test environment in the next days though. This bug only occurs in SSH to root user on OpenBSD, using zsh with the oh-my-zsh plugin as the default shell. It seems that konsole reads the working directory inside the SSH session as its working directory to create a new tab. However, it doesn't have permission to change directory to /root directory. If SSH to a normal user, one can change directory to / inside the SSH. The new tab will also change directory to /, indicating that konsole has misinterpreted the directory inside the SSH session as its working directory.
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 475116 M +3 -1 src/session/Session.cpp https://invent.kde.org/utilities/konsole/-/commit/e4840a2e7cbf006821fbbac5128eaaf585f8125a