Skip to content

Commit

Permalink
wpe-demo-run: Adapted to the changes in wpe-simple-launcher.
Browse files Browse the repository at this point in the history
  • Loading branch information
psaavedra committed Jan 25, 2025
1 parent a418a12 commit 25220a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions recipes-graphics/wayland/files/wpe-demo-run
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ if __name__ == "__main__":
lines = f.readlines()

try:
os.system("%s /tmp/wpe-demo-run" % launcher)
os.system("echo maximized > /tmp/wpe-demo-run" % lines[0].split()[0])
os.system("%s --ctrl /tmp/wpe-demo-run %s &" % (launcher, lines[0].split()[0]))
except Exception as e:
print("Error parsing first line: %s" % e)
sys.exit(2)
Expand All @@ -67,7 +66,7 @@ if __name__ == "__main__":
entry = l.split()
url = entry[0]
duration = entry[1]
call("echo %s > /tmp/wpe-demo-run" % (launcher, url))
call("echo %s > /tmp/wpe-demo-run" % url)
time.sleep(int(duration))
counter += 1
except Exception as e:
Expand Down

0 comments on commit 25220a8

Please sign in to comment.