diff --git a/main.ui b/main.ui index 14eda25..fa0fe48 100644 --- a/main.ui +++ b/main.ui @@ -77,7 +77,7 @@ 200 - 310 + 280 @@ -91,7 +91,21 @@ 200 - 265 + 235 + + + + + Portable + 35 + True + True + False + True + + + 255 + 318 diff --git a/main.vala b/main.vala index 63ad29c..0806ac8 100644 --- a/main.vala +++ b/main.vala @@ -91,10 +91,10 @@ int download () { string pm; Process.spawn_command_line_sync ("pkexec pacman -S yggdrasil --noconfirm", out pm); - if (pm == "bash: pacman: command not found\n") { + if (pm == "Cannot run program pacman: No such file or directory\n") { Process.spawn_command_line_sync ("wget https://2375-115685026-gh.circle-artifacts.com/0/yggdrasil-0.3.12-amd64.deb"); - Process.spawn_command_line_sync ("dpkg -i yggdrasil-0.3.12-amd64.deb"); + Process.spawn_command_line_sync ("pkexec dpkg -i yggdrasil-0.3.12-amd64.deb"); } @@ -139,7 +139,7 @@ int stop () { try { Process.spawn_command_line_sync ("pkexec rc-service yggdrasil stop"); - Process.spawn_command_line_sync ("systemctl stop yggdrasil"); + Process.spawn_command_line_sync ("pkexec systemctl stop yggdrasil"); } catch (Error e) { @@ -158,7 +158,7 @@ int start () { try { Process.spawn_command_line_sync ("pkexec rc-service yggdrasil start"); - Process.spawn_command_line_sync ("systemctl start yggdrasil"); + Process.spawn_command_line_sync ("pkexec systemctl start yggdrasil"); } catch (Error e) {