diff --git a/common/polkit-parsing.sh b/common/polkit-parsing.sh index a32ef6af7ae43ec0c89e805cb34f3ec300147bae..aa9824488bbb0f762b223e8f84ea88d5e5476d76 100755 --- a/common/polkit-parsing.sh +++ b/common/polkit-parsing.sh @@ -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. #