-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileSystem dock: Fix opening a Linux terminal #88173
FileSystem dock: Fix opening a Linux terminal #88173
Conversation
d9e3151
to
717b2e6
Compare
717b2e6
to
e64ec01
Compare
The previous implementation of opening a terminal in the FileSystem dock was causing errors due to the use of a bash builtin command that does not work outside the shell. This resulted in the following error messages: ERROR: Could not create child process: command at: execute (drivers/unix/os_unix.cpp:553) ERROR: Could not create child process: command at: execute (drivers/unix/os_unix.cpp:553) ... To resolve this issue, + the command is now executed inside a bash shell, + if the `terminal_emulator_flags` editor option is empty, the working directory for gnome-terminal and urxvt is now properly set.
e64ec01
to
8e8f8e9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't reproduce the bug on Fedora 39 with KDE Plasma (Wayland), but I tested the PR and it doesn't seem to break it either. So if it solves it for you, I guess it's fine.
I thought Either way, it's not very important as the editor on Linux/*BSD will pretty much always have Bash available. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally on Fedora 39 KDE X11 (with Konsole and Kitty), it works as expected.
Thanks! |
The previous implementation of opening a terminal
in the FileSystem dock was causing errors due to the use
of a bash builtin command that does not work outside the shell.
This resulted in the following error messages:
To resolve this issue,
terminal_emulator_flags
editor option is empty,the working directory for gnome-terminal and urxvt is now properly set.
Tested only on GNOME platforms debian/ubuntu:
godot4.3devX -v -e
...
Opening terminal emulator: gnome-terminal --working-directory ... /00-test-new_projects/new-project1/new_folder/test folder/
Opening terminal emulator: urxvt -cd ... /00-test-new_projects/new-project1/new_folder/test folder