[gnome-control-center/wip/hadess/fix-upowerd-jhbuild] power: Fix running upowerd under jhbuild
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/hadess/fix-upowerd-jhbuild] power: Fix running upowerd under jhbuild
- Date: Wed, 16 Feb 2022 11:54:50 +0000 (UTC)
commit 99c0e0453c80cf952bc4d051da51661c7b39d51b
Author: Bastien Nocera <hadess hadess net>
Date: Wed Feb 16 12:53:26 2022 +0100
power: Fix running upowerd under jhbuild
A logic error meant that the systemd upowerd would always be used.
panels/power/power-panel-scenario-tester.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/panels/power/power-panel-scenario-tester.py b/panels/power/power-panel-scenario-tester.py
index 3738409e7..59860f793 100755
--- a/panels/power/power-panel-scenario-tester.py
+++ b/panels/power/power-panel-scenario-tester.py
@@ -60,7 +60,7 @@ class GccDBusTestCase(DBusTestCase):
if not GLib.file_test(klass.upowerd_path, GLib.FileTest.IS_EXECUTABLE):
klass.upowerd_path = None
- if os.environ.get('UNDER_JHBUILD', False) or klass.upowerd_path == None:
+ if not os.environ.get('UNDER_JHBUILD', False) or klass.upowerd_path == None:
klass.upowerd_path = None
with open('/usr/share/dbus-1/system-services/org.freedesktop.UPower.service') as f:
for line in f:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]