Change scx check

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2024-07-25 19:26:33 +00:00 committed by GitHub
parent 77ba440a93
commit 5cbe0e8ef6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "fedora-kernel-manager" name = "fedora-kernel-manager"
version = "0.1.3" version = "0.1.4"
edition = "2021" edition = "2021"

View File

@ -1,4 +1,4 @@
%define pkg_release 0.1.3 %define pkg_release 0.1.4
Name: fedora-kernel-manager Name: fedora-kernel-manager

View File

@ -609,8 +609,8 @@ fn create_current_sched_badge(
} }
fn is_scx_installed() -> bool { fn is_scx_installed() -> bool {
match Command::new("rpm") match Command::new("systemctl")
.args(["-q", "sched-ext-scx"]) .args(["status", "scx"])
.output() { .output() {
Ok(t) if t.status.success() => true, Ok(t) if t.status.success() => true,
_ => false _ => false