From f9ff19b033202505275e7e8b7f9b11ef4384ddc6 Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Thu, 18 Jan 2024 17:51:59 +0300 Subject: [PATCH] Superuser --- src/partitioning_page.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/partitioning_page.rs b/src/partitioning_page.rs index 10a98ce..adfbab2 100644 --- a/src/partitioning_page.rs +++ b/src/partitioning_page.rs @@ -278,7 +278,8 @@ pub fn partitioning_page(content_stack: >k::Stack) { devices_selection_expander_row.add_row(&devices_selection_expander_row_viewport); - let mut partition_method_automatic_get_devices_cli = Command::new("/usr/lib/pika/pika-installer-gtk4/scripts/partition-utility.sh") + let mut partition_method_automatic_get_devices_cli = Command::new("pkexec") + .arg("/usr/lib/pika/pika-installer-gtk4/scripts/partition-utility.sh") .arg("get_block_devices") .stdin(Stdio::piped()) .stdout(Stdio::piped()) @@ -296,7 +297,8 @@ pub fn partitioning_page(content_stack: >k::Stack) { for device in partition_method_automatic_get_devices_reader.lines() { let device = device.unwrap(); - let device_size_cli = Command::new("/usr/lib/pika/pika-installer-gtk4/scripts/partition-utility.sh") + let device_size_cli = Command::new("pkexec") + .arg("/usr/lib/pika/pika-installer-gtk4/scripts/partition-utility.sh") .arg("get_block_size") .arg(device.clone()) .output()