From e240b61dd07f22ab231f1d403337271f31b6c43e Mon Sep 17 00:00:00 2001 From: Riktam Date: Tue, 24 Sep 2024 00:04:14 +0200 Subject: [PATCH] Fix enable and disable of Wayland. --- adafruit-pitft.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adafruit-pitft.py b/adafruit-pitft.py index 1b535c3..122f2fd 100644 --- a/adafruit-pitft.py +++ b/adafruit-pitft.py @@ -741,11 +741,11 @@ def disable_wayland(disable): return if disable: print("Using X11 instead of Wayland") - if not shell.run_command("sudo raspi-config nonint do_wayland W1"): + if not shell.run_command("sudo raspi-config nonint do_wayland 0"): shell.bail("Unable to disable Wayland") else: print("Using Wayland instead of X11") - if not shell.run_command("sudo raspi-config nonint do_wayland W1"): + if not shell.run_command("sudo raspi-config nonint do_wayland 1"): shell.bail("Unable to enable Wayland") ####################################################### MAIN