nixpkgs/pkgs/desktops/pantheon/services/elementary-settings-daemon/global-backlight-helper.patch
worldofpeace f7bbb18f83 pantheon.elementary-settings-daemon: 3.32.0 -> 3.30.2
This downgrade is needed temporarily to alleviate breakages
such as [0] to Pantheon on Unstable.

[0]: https://github.com/elementary/gala/issues/518
2019-06-11 03:00:35 -04:00

27 lines
1.2 KiB
Diff

diff --git a/plugins/power/gpm-common.c b/plugins/power/gpm-common.c
index e83f1549..15890053 100644
--- a/plugins/power/gpm-common.c
+++ b/plugins/power/gpm-common.c
@@ -452,7 +452,7 @@ run_backlight_helper (enum BacklightHelperCommand command,
gchar *argv[5] = { 0 };
argv[0] = "pkexec";
- argv[1] = LIBEXECDIR "/gsd-backlight-helper";
+ argv[1] = "/run/current-system/sw/bin/elementary-settings-daemon/gsd-backlight-helper";
argv[2] = helper_args[command];
argv[3] = value;
diff --git a/plugins/power/org.gnome.settings-daemon.plugins.power.policy.in.in b/plugins/power/org.gnome.settings-daemon.plugins.power.policy.in.in
index f16300f8..f19bba3e 100644
--- a/plugins/power/org.gnome.settings-daemon.plugins.power.policy.in.in
+++ b/plugins/power/org.gnome.settings-daemon.plugins.power.policy.in.in
@@ -25,7 +25,7 @@
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
- <annotate key="org.freedesktop.policykit.exec.path">@libexecdir@/gsd-backlight-helper</annotate>
+ <annotate key="org.freedesktop.policykit.exec.path">/run/current-system/sw/bin/elementary-settings-daemon/gsd-backlight-helper</annotate>
</action>
</policyconfig>