Skip to content

Commit

Permalink
power: Fix scenario tester running upowerd under jhbuild
Browse files Browse the repository at this point in the history
A logic error meant that the systemd upowerd would always be used.
  • Loading branch information
hadess authored and GeorgesStavracas committed Feb 17, 2022
1 parent e19d64a commit 0947ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panels/power/power-panel-scenario-tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def setUpClass(klass):
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:
Expand Down

0 comments on commit 0947ae2

Please sign in to comment.