STEPS TO REPRODUCE 1. Konsole > Edit current profile > General > choose "Start in same directory as current session" 2. Change the current user to root and go to any directory that the normal user doesn't have the execute permission 3. open a new tab or split view ACTUAL RESULT: Konsole shows the error: > Warning: Could not start program '/bin/bash' with arguments ''. > Warning: chdir: Permission denied EXPECTED RESULT: When the user doesn't have the execute permission, Konsole should start in the Initial directory
A possibly relevant merge request was started @ https://invent.kde.org/utilities/konsole/-/merge_requests/961
*** Bug 469249 has been marked as a duplicate of this bug. ***
*** Bug 475116 has been marked as a duplicate of this bug. ***
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 469249, bug 475116 M +3 -1 src/session/Session.cpp https://invent.kde.org/utilities/konsole/-/commit/e4840a2e7cbf006821fbbac5128eaaf585f8125a