Skip to content

Commit

Permalink
move to polkit-kde
Browse files Browse the repository at this point in the history
polkit-kde is much better
  • Loading branch information
alexforsale committed Jun 13, 2024
1 parent 33ad710 commit 312ee1d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions index.org
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ case "${DISTRO}" in
export SUDO_ASKPASS=/usr/bin/x11-ssh-askpass

# polkit
if [ ! "$(pgrep -u ${USER} -x polkit-gnome-au)" ];then
sleep 1 && /usr/libexec/polkit-gnome-authentication-agent-1 &
if [ ! "$(pgrep -f -u ${USER} -x polkit-kde-authentication-agent-1)" ];then
sleep 1 && /usr/libexec/polkit-kde-authentication-agent-1 &
fi
;;
arch)
Expand All @@ -73,8 +73,8 @@ case "${DISTRO}" in
export SUDO_ASKPASS="${HOME}"/.local/bin/ssh-askpass
fi
# polkit
if [ ! "$(pgrep -u ${USER} -x polkit-gnome-authentication-agent-1)" ];then
sleep 1 && /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
if [ ! "$(pgrep -f -u ${USER} -x polkit-kde-authentication-agent-1)" ];then
sleep 1 && /usr/lib/polkit-kde-authentication-agent-1 &
fi

# keyring
Expand All @@ -87,9 +87,9 @@ case "${DISTRO}" in
export SUDO_ASKPASS=/usr/local/bin/x11-ssh-askpass

# polkit
if [ ! "$(pgrep -u ${USER} -x polkit-gnome-authentication-agent-1)" ];then
sleep 1 && /usr/local/libexec/polkit-gnome-authentication-agent-1 &
fi
if [ ! "$(pgrep -f -u ${USER} -x polkit-kde-authentication-agent-1)" ];then
sleep 1 && /usr/local/libexec/polkit-kde-authentication-agent-1 &

# keyring
[ "$(command -v dbus-update-activation-environment)" ] &&
dbus-update-activation-environment DISPLAY
Expand Down

0 comments on commit 312ee1d

Please sign in to comment.