Browse Source

Merge pull request #89803 from timothyqiu/xfce4-terminal

Add necessary flags when opening directory with xfce4-terminal
Rémi Verschelde 1 year ago
parent
commit
3c4c79c65a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      editor/filesystem_dock.cpp

+ 2 - 0
editor/filesystem_dock.cpp

@@ -2250,6 +2250,8 @@ void FileSystemDock::_file_option(int p_option, const Vector<String> &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