Add necessary flags when opening directory with xfce4-terminal

This commit is contained in:
Haoyu Qiu 2024-03-23 20:41:44 +08:00
parent fe01776f05
commit 7984043768

View file

@ -2213,6 +2213,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