updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libgksu-ubuntu / patches / 15_extra_paranoia_for_gconf.diff.patch
blobf61f1325cb7129b24090e4e066faf075e916af22
1 diff -Nur libgksu-1.9.8/libgksu/libgksu.c libgksu-1.9.8.new/libgksu/libgksu.c
2 --- libgksu-1.9.8/libgksu/libgksu.c 2006-10-09 19:16:41.000000000 +0200
3 +++ libgksu-1.9.8.new/libgksu/libgksu.c 2006-10-09 19:17:16.000000000 +0200
4 @@ -819,7 +795,15 @@
5 context->grab = TRUE;
7 context->sudo_mode = gconf_client_get_bool (gconf_client, BASE_PATH "sudo-mode",
8 - NULL);
9 + NULL);
10 + // UBUNTU specific - if the sudo mode is not set, check if we actualy have
11 + // a registered schema for it, upgrades sometimes blew it away (lp: #59079)
12 + if(context->sudo_mode == FALSE) {
13 + GConfValue* v = gconf_client_get_default_from_schema(gconf_client, BASE_PATH "sudo-mode", NULL);
14 + if(!v)
15 + context->sudo_mode = TRUE;
16 + gconf_value_free(v);
17 + }
20 /**