You've already forked godot
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:
@@ -565,7 +565,15 @@ Error OS_LinuxBSD::shell_open(const String &p_uri) {
|
|||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
ok = execute("kde-open", args, nullptr, &err_code);
|
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) {
|
bool OS_LinuxBSD::_check_internal_feature_support(const String &p_feature) {
|
||||||
|
|||||||
Reference in New Issue
Block a user