aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-05-11 20:57:19 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-05-11 20:57:19 -0300
commite0df918083713e82fdd2c9a15756f2ff3e51d1ec (patch)
tree4e9e0e86381c790ae1c6e2b40ffdf01258ac279e
parent60ea60eb6ea18d5491ded883fe8c939c8a188ba8 (diff)
downloadxsession-e0df918083713e82fdd2c9a15756f2ff3e51d1ec.tar.gz
xsession-e0df918083713e82fdd2c9a15756f2ff3e51d1ec.tar.bz2
Start polkit agent if available
-rwxr-xr-xxsessionrc.dot.link6
1 files changed, 6 insertions, 0 deletions
diff --git a/xsessionrc.dot.link b/xsessionrc.dot.link
index 659a058..42aa23b 100755
--- a/xsessionrc.dot.link
+++ b/xsessionrc.dot.link
@@ -97,6 +97,12 @@ if [ "$OSVERSION" != "6" ] && which gnome-keyring-daemon > /dev/null; then
true
fi
+# Polkit agent
+# See https://leap.se/en/docs/client/known-issues#no-polkit-agent-available-error
+if [ -e "/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1" ]; then
+ /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
+fi
+
# Make sure to finish all background processes
#trap 'kill $(jobs -p)' EXIT