From 7984043768c4f089a681b3f5bed859208a01b601 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Sat, 23 Mar 2024 20:41:44 +0800 Subject: [PATCH] Add necessary flags when opening directory with xfce4-terminal --- editor/filesystem_dock.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index 0f83e109fa9..8b8027e430f 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -2213,6 +2213,8 @@ void FileSystemDock::_file_option(int p_option, const Vector &p_selected terminal_emulator_args.push_back("--working-directory"); } else if (chosen_terminal_emulator.ends_with("urxvt")) { terminal_emulator_args.push_back("-cd"); + } else if (chosen_terminal_emulator.ends_with("xfce4-terminal")) { + terminal_emulator_args.push_back("--working-directory"); } } #endif