Skip to content

Commit

Permalink
fix(cli/info): use XDG_SESSION_DESKTOP instead of DESKTOP_SESSION
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Nov 12, 2024
1 parent 4693521 commit 7e86ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/tauri-cli/src/info/env_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ fn de_and_session() -> String {
target_os = "netbsd"
))]
return {
let de = std::env::var("DESKTOP_SESSION");
let de = std::env::var("XDG_SESSION_DESKTOP");
let session = std::env::var("XDG_SESSION_TYPE");
format!(
" ({} on {})",
Expand Down

0 comments on commit 7e86ddb

Please sign in to comment.