gtk+3: fix dependencies for new gnome/accessibility/at-spi2-core
[oi-userland.git] / components / desktop / mate / mate-power-manager / patches / 04-no-polkit.patch
blobd55e2ea31f3731a0e03898aa06084671bf780e9c
1 --- mate-power-manager-1.18.1/src/gpm-brightness.c.1 2018-01-16 07:26:45.891311170 +0000
2 +++ mate-power-manager-1.18.1/src/gpm-brightness.c 2018-01-16 07:29:22.128743384 +0000
3 @@ -159,7 +159,11 @@
4 gchar *command = NULL;
6 /* get the data */
7 +#if defined(__sun) && defined(__SVR4)
8 + command = g_strdup_printf ("pfexec " SBINDIR "/mate-power-backlight-helper --%s %i", argument, value);
9 +#else
10 command = g_strdup_printf ("pkexec " SBINDIR "/mate-power-backlight-helper --%s %i", argument, value);
11 +#endif
12 ret = g_spawn_command_line_sync (command, NULL, NULL, &exit_status, &error);
13 if (!ret) {
14 egg_error ("failed to get value: %s", error->message);