my typos are getting ridiclous
This commit is contained in:
parent
34abb97abb
commit
022fe057ed
@ -160,6 +160,9 @@ pub fn content(
|
||||
.set_tooltip_text(Some(&t!("config_kernel_button_tooltip_text_no_scx_installed").to_string()));
|
||||
}
|
||||
|
||||
// DEBUG
|
||||
//config_kernel_button.set_sensitive(true);
|
||||
|
||||
config_kernel_button.connect_clicked(clone!(@weak content_stack, @weak window, @weak sched_ext_badge_box => move |_| {
|
||||
content_stack.add_named(
|
||||
&sched_ext::sched_ext_page(&content_stack, &window, &sched_ext_badge_box),
|
||||
|
@ -252,18 +252,15 @@ fn get_current_scx_scheduler() -> String {
|
||||
scx_sched
|
||||
}
|
||||
|
||||
const CHANGE_SCX_PROG: &str = r###"
|
||||
#! /bin/bash
|
||||
SCX_SCHED="$0"
|
||||
pkexec /usr/lib/fedora-kernel-manager/scripts/change_scx.sh "${SCX_SCHED}"
|
||||
"###;
|
||||
|
||||
fn change_scx_scheduler(
|
||||
scx_sched: &str,
|
||||
) -> Result<(), io::Error> {
|
||||
cmd!(
|
||||
"pkexec",
|
||||
"bash",
|
||||
"-c",
|
||||
format!(
|
||||
"/usr/lib/fedora-kernel-manager/scripts/change_scx.sh {}",
|
||||
scx_sched
|
||||
)
|
||||
)
|
||||
.run()?;
|
||||
cmd!("bash", "-c", CHANGE_SCX_PROG, scx_sched).run()?;
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user