Superuser
This commit is contained in:
parent
e6e7cd88ab
commit
f9ff19b033
@ -278,7 +278,8 @@ pub fn partitioning_page(content_stack: >k::Stack) {
|
|||||||
|
|
||||||
devices_selection_expander_row.add_row(&devices_selection_expander_row_viewport);
|
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")
|
.arg("get_block_devices")
|
||||||
.stdin(Stdio::piped())
|
.stdin(Stdio::piped())
|
||||||
.stdout(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() {
|
for device in partition_method_automatic_get_devices_reader.lines() {
|
||||||
let device = device.unwrap();
|
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("get_block_size")
|
||||||
.arg(device.clone())
|
.arg(device.clone())
|
||||||
.output()
|
.output()
|
||||||
|
Loading…
Reference in New Issue
Block a user