Set XDG_SESSION_DESKTOP
This commit is contained in:
parent
faf6d33aa8
commit
e5d859a902
1 changed files with 3 additions and 0 deletions
|
|
@ -228,6 +228,9 @@ pub fn main() -> Result<(), Box<dyn Error>> {
|
|||
|
||||
if let Some(desktop_names) = entry.section("Desktop Entry").attr("DesktopNames") {
|
||||
env.push(format!("XDG_CURRENT_DESKTOP={desktop_names}"));
|
||||
if let Some(name) = desktop_names.split(':').next() {
|
||||
env.push(format!("XDG_SESSION_DESKTOP={name}"));
|
||||
}
|
||||
}
|
||||
|
||||
// Session exec may contain environmental variables
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue