Skip to content

Commit

Permalink
Deals with XDG_DATA_DIRS env var unset in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
amkillam committed Mar 14, 2023
1 parent 00d47d4 commit 244071a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 244071a

Please sign in to comment.