From 244071a461b2f812a1e6f248e72438af4a5078e4 Mon Sep 17 00:00:00 2001 From: Adam Killam Date: Mon, 13 Mar 2023 21:38:30 -0230 Subject: [PATCH] Deals with XDG_DATA_DIRS env var unset in Windows --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 6688de8..f9c1cf8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,6 +28,7 @@ use log::{debug, error, LevelFilter}; use self::application::Application; fn main() { + env::set_var("XDG_DATA_DIRS", PKGDATADIR); let mut builder = pretty_env_logger::formatted_builder(); if APPLICATION_ID.ends_with("Devel") { builder.filter(Some("amberol"), LevelFilter::Debug);