mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-25 19:25:56 +00:00
feat: the Manager starts and finds its folders on Linux
- main: set WEBKIT_DISABLE_DMABUF_RENDERER=1 on Linux unless the user did. WebKitGTK's DMA-BUF renderer ended the process at startup with a Wayland "Protocol error" (seen with an NVIDIA card on Wayland). - data_dir: use $XDG_DATA_HOME (absolute only) or ~/.local/share on Linux instead of the temp folder. Windows keeps %LOCALAPPDATA%. - open_link: xdg-open on Linux, explorer.exe on Windows as before. - tailscale_exe: look in the usual Linux locations. Every Windows branch is the previous code unchanged.
This commit is contained in:
1 parent
53aa117ec2
commit
e889e0a789
3 files changed
+58
-2
No files matched your search
@@ -1,5 +1,11 @@
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
|
||||
fn main() {
|
||||
// WebKitGTK's DMA-BUF renderer ends the process with a Wayland "Protocol error" on some graphics stacks (seen with
|
||||
// an NVIDIA card on Wayland). The path without it works everywhere; a value set by the user is left alone.
|
||||
#[cfg(target_os = "linux")]
|
||||
if std::env::var_os("WEBKIT_DISABLE_DMABUF_RENDERER").is_none() {
|
||||
std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1");
|
||||
}
|
||||
coa_server_manager_lib::run()
|
||||
}
|
||||
Reference in new issue
Block a user