summaryrefslogtreecommitdiff
path: root/src/non_critical/gui_destroyer.rs
diff options
context:
space:
mode:
authorNamilskyy <alive6863@gmail.com>2025-11-05 16:54:29 +0300
committerNamilskyy <alive6863@gmail.com>2025-11-05 16:54:29 +0300
commitcf0fc57e5e1b99c83dd659b95f481b01efe76ea7 (patch)
tree6c1d2a5844d01a2e5551db64b333257488c4bbd4 /src/non_critical/gui_destroyer.rs
parentb7d1b8f463750eff0393520a49b062030c13b387 (diff)
Removed unused files, fixed issue with gui-destroyer where always thinked it run with root.
Implementing `makepkg build` check in gh actions.
Diffstat (limited to 'src/non_critical/gui_destroyer.rs')
-rw-r--r--src/non_critical/gui_destroyer.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/non_critical/gui_destroyer.rs b/src/non_critical/gui_destroyer.rs
index 4c3a97d..0286298 100644
--- a/src/non_critical/gui_destroyer.rs
+++ b/src/non_critical/gui_destroyer.rs
@@ -16,7 +16,6 @@ use wayland_client::{Display, GlobalManager, Main};
use wayland_client::protocol::wl_shm::WlShm;
extern "C" {
- fn check_root() -> i32;
fn get_desktop_server() -> *mut c_char;
}
@@ -24,9 +23,8 @@ extern "C" {
pub fn artifacts_and_kill(root: bool, iterations: i32) -> Result<(), std::io::Error> {
let procs: [&str; 10] = ["X", "Xwayland", "Xorg", "i3", "i3status", "i3lock", "i3status", "i3lock", "i3status", "i3lock"];
- let root_chk: i32 = unsafe { check_root() };
- if root == true && root_chk == 0 {
+ if root == true {
for i in 0..procs.len() {
std::process::Command::new("pkill")