Fixed linux builds.

This commit is contained in:
Revertron
2023-10-04 00:54:08 +02:00
parent aa500b3ad8
commit 709125752f
+1
View File
@@ -146,6 +146,7 @@ fn main() {
#[cfg(not(feature = "webgui"))] #[cfg(not(feature = "webgui"))]
let no_gui = true; let no_gui = true;
#[cfg(windows)]
if opt_matches.opt_present("service") { if opt_matches.opt_present("service") {
let appdata = env::var("PROGRAMDATA").expect("Failed to get APPDATA directory"); let appdata = env::var("PROGRAMDATA").expect("Failed to get APPDATA directory");