mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-19 03:25:56 +00:00
- 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.
12 lines
522 B
Rust
12 lines
522 B
Rust
#![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()
|
|
}
|