Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

Commit 977ed94

Browse files
committed
Fix envar detection
Use the correct value of each desktop environment
1 parent 945b110 commit 977ed94

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fn main() {
4646

4747
let result = match desktop_env.as_str() {
4848
"gnome" => Command::new("gnome-software").arg("--mode=updates").spawn(),
49-
"kde" | "xfce" | "budgie" => {
49+
"KDE" | "xfce" | "budgie-desktop" => {
5050
Command::new("plasma-discover").arg("--mode=update").spawn()
5151
}
5252
_ => Err(std::io::Error::new(
@@ -68,7 +68,7 @@ fn main() {
6868

6969
let result = match desktop_env.as_str() {
7070
"gnome" => Command::new("gnome-software").arg("--details=nvidia-glx-driver-current").spawn(),
71-
"kde" | "xfce" | "budgie" => Command::new("plasma-discover")
71+
"KDE" | "xfce" | "budgie-desktop" => Command::new("plasma-discover")
7272
.args(["--category", "Hardware Drivers"])
7373
.spawn(),
7474
_ => Err(std::io::Error::new(

0 commit comments

Comments
 (0)