summary refs log tree commit diff
path: root/pkgs/desktops/pantheon/services/elementary-settings-daemon/global-backlight-helper.patch
blob: c073b23e6b9f42a02d89f05ce8f780f5adf4e89d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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>