Add support for running apps as root by policykit
This commit is contained in:
parent
899ba43db2
commit
7fe5f823fe
@ -5,14 +5,13 @@ if [[ "$DESKTOP_SESSION" = "dwm" ]]; then
|
|||||||
export AWT_TOOLKIT=MToolkit
|
export AWT_TOOLKIT=MToolkit
|
||||||
wmname LG3D
|
wmname LG3D
|
||||||
|
|
||||||
compton &
|
|
||||||
dwmstatus &
|
|
||||||
if test -f "$HOME/.screenlayout/main.sh"; then
|
if test -f "$HOME/.screenlayout/main.sh"; then
|
||||||
"$HOME/.screenlayout/main.sh"
|
"$HOME/.screenlayout/main.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
compton &
|
compton &
|
||||||
redshift &
|
redshift &
|
||||||
|
dwmstatus &
|
||||||
|
|
||||||
if test -f /usr/share/backgrounds/gnome/Road.jpg ; then
|
if test -f /usr/share/backgrounds/gnome/Road.jpg ; then
|
||||||
feh --bg-scale /usr/share/backgrounds/gnome/Road.jpg &
|
feh --bg-scale /usr/share/backgrounds/gnome/Road.jpg &
|
||||||
@ -32,3 +31,8 @@ fi
|
|||||||
if command -v slack &> /dev/null ; then
|
if command -v slack &> /dev/null ; then
|
||||||
slack &
|
slack &
|
||||||
fi
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user