Skip to content
Snippets Groups Projects
Commit 28689932 authored by Dylan Aïssi's avatar Dylan Aïssi
Browse files

Give more time to polkitd to be ready


For unknown reasons (race conditions?), pkaction randomly fails with:
"Error enumerating actions: GDBus.Error:org.freedesktop.DBus.Error.NoReply:
Message recipient disconnected from message bus without replying"

So, to mitigate this issue give it some more time to be ready,
although this should be the aim of "gdbus wait" above.

Signed-off-by: default avatarDylan Aïssi <dylan.aissi@collabora.com>
parent 130c77da
No related branches found
No related tags found
1 merge request!310More polkit-parsing.sh cleanup
......@@ -40,6 +40,13 @@ fi
gdbus wait --address unix:path=/run/dbus/system_bus_socket \
org.freedesktop.PolicyKit1
# For unknown reasons (race conditions?), pkaction randomly fails with:
# "Error enumerating actions: GDBus.Error:org.freedesktop.DBus.Error.NoReply:
# Message recipient disconnected from message bus without replying"
# So, to mitigate this issue give it some more time to be ready,
# although this should be the aim of "gdbus wait" above.
sleep 5
# Query for actions, which forces polkit to parse all the policy files and
# output warnings if any are malformed.
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment