1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Implement XFCE support in os_linuxbsd.cpp

Added support for XFCE by executing 'exo-open' alongside 'kde-open'.
Refactor error handling in os_linuxbsd.cpp
This commit is contained in:
DSOE1024
2025-11-30 07:37:14 +08:00
parent 7ed0b61676
commit b982794b23

View File

@@ -565,7 +565,15 @@ Error OS_LinuxBSD::shell_open(const String &p_uri) {
return OK;
}
ok = execute("kde-open", args, nullptr, &err_code);
return !err_code ? ok : FAILED;
if (ok == OK && !err_code) {
return OK;
}
// XFCE
ok = execute("exo-open", args, nullptr, &err_code);
if (ok == OK && !err_code) {
return OK;
}
return FAILED;
}
bool OS_LinuxBSD::_check_internal_feature_support(const String &p_feature) {