From 74befc9b6ceeadb2cb40892fb342f131003e2b08 Mon Sep 17 00:00:00 2001 From: axtlos Date: Sun, 26 Feb 2023 15:40:07 +0100 Subject: [PATCH] Add polkit-gnome to i3 and sway --- src/functions/desktops.rs | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/functions/desktops.rs b/src/functions/desktops.rs index 6838239..d36f9c0 100644 --- a/src/functions/desktops.rs +++ b/src/functions/desktops.rs @@ -113,6 +113,7 @@ fn install_i3() { "lightdm-gtk-greeter-settings", "xdg-user-dirs", "dex", + "polkit-gnome", ]); files_eval( files::append_file( @@ -122,9 +123,16 @@ fn install_i3() { "Add lightdm greeter", ); files_eval( - files::append_file("/mnt/etc/i3/config", "exec_always --no-startup-id dex -a\n"), + files::append_file("/mnt/etc/i3/config", "exec --no-startup-id dex -a\n"), "Add dex to i3 config for autostart", ); + files_eval( + files::append_file( + "/mnt/etc/i3/config", + "exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1", + ), + "Add polkit gnome to i3 config", + ); enable_dm("lightdm"); } @@ -145,14 +153,22 @@ fn install_sway() { "sddm", "xdg-user-dirs", "dex", + "polkit-gnome", ]); files_eval( files::append_file( "/mnt/etc/sway/config", - "exec_always --no-startup-id dex -a\n", + "exec --no-startup-id dex -a\n", ), "Add dex to sway config for autostart", ); + files_eval( + files::append_file( + "/mnt/etc/sway/config", + "exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1", + ), + "Add polkit gnome to sway config", + ); enable_dm("sddm"); }