Blame SOURCES/polkit-0.112-pkttyagent-auth-errmsg-debug.patch
|
|
dc3ed5 |
diff -up ./src/programs/pkttyagent.c.ori ./src/programs/pkttyagent.c
|
|
|
dc3ed5 |
--- ./src/programs/pkttyagent.c.ori 2018-08-01 15:51:28.495910434 +0200
|
|
|
dc3ed5 |
+++ ./src/programs/pkttyagent.c 2018-08-02 15:51:45.126311197 +0200
|
|
|
dc3ed5 |
@@ -150,7 +150,8 @@ main (int argc, char *argv[])
|
|
|
dc3ed5 |
authority = polkit_authority_get_sync (NULL /* GCancellable* */, &error);
|
|
|
dc3ed5 |
if (authority == NULL)
|
|
|
dc3ed5 |
{
|
|
|
dc3ed5 |
- g_printerr ("Error getting authority: %s (%s, %d)\n",
|
|
|
dc3ed5 |
+ g_printerr ("Authorization not available. Check if polkit service is running or see debug message for more information.\n");
|
|
|
dc3ed5 |
+ g_debug ("Error getting authority: %s (%s, %d)\n",
|
|
|
dc3ed5 |
error->message, g_quark_to_string (error->domain), error->code);
|
|
|
dc3ed5 |
g_error_free (error);
|
|
|
dc3ed5 |
ret = 127;
|