Merge pull request #5197 from 21pages/opt

log nothing if config file not found
This commit is contained in:
RustDesk
2023-07-30 12:53:42 +08:00
committed by GitHub
3 changed files with 8 additions and 18 deletions

View File

@@ -77,7 +77,7 @@ pub fn core_main() -> Option<Vec<String>> {
#[cfg(target_os = "linux")]
#[cfg(feature = "flutter")]
{
let (k, v) = ("LIBGL_ALWAYS_SOFTWARE", "true");
let (k, v) = ("LIBGL_ALWAYS_SOFTWARE", "1");
if !hbb_common::config::Config::get_option("allow-always-software-render").is_empty() {
std::env::set_var(k, v);
} else {