From 7fe5f823fe5faa8c3d8966694f1569cdaf557b3b Mon Sep 17 00:00:00 2001 From: pgrondek Date: Thu, 30 Jul 2020 11:47:56 +0200 Subject: [PATCH] Add support for running apps as root by policykit --- .xsessionrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.xsessionrc b/.xsessionrc index 6d4838e..2531ea7 100755 --- a/.xsessionrc +++ b/.xsessionrc @@ -5,14 +5,13 @@ if [[ "$DESKTOP_SESSION" = "dwm" ]]; then export AWT_TOOLKIT=MToolkit wmname LG3D - compton & - dwmstatus & if test -f "$HOME/.screenlayout/main.sh"; then "$HOME/.screenlayout/main.sh" fi compton & redshift & + dwmstatus & if test -f /usr/share/backgrounds/gnome/Road.jpg ; then feh --bg-scale /usr/share/backgrounds/gnome/Road.jpg & @@ -32,3 +31,8 @@ fi if command -v slack &> /dev/null ; then slack & fi + +# Authentication agent for running application as root +if test /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 ; then + /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 & +fi