diff --git a/guake/main.py b/guake/main.py index ded217910..98c6ef3b0 100644 --- a/guake/main.py +++ b/guake/main.py @@ -41,8 +41,13 @@ log = logging.getLogger(__name__) -# Force use X11 backend under wayland before any import of GDK through dependencies +# Force use X11 backend under wayland before any import of GDK through dependencies. +# This could fix weird problems under Wayland. +# But if user set the environment variable GUAKE_ENABLE_WAYLAND, then force +# use Wayland backend. os.environ["GDK_BACKEND"] = "x11" +if "GUAKE_ENABLE_WAYLAND" in os.environ: + os.environ["GDK_BACKEND"] = "wayland" from guake.globals import NAME from guake.globals import bindtextdomain diff --git a/releasenotes/notes/bugfix-guake_enable_wayland-5048964c25699a85.yaml b/releasenotes/notes/bugfix-guake_enable_wayland-5048964c25699a85.yaml new file mode 100644 index 000000000..46ff046b0 --- /dev/null +++ b/releasenotes/notes/bugfix-guake_enable_wayland-5048964c25699a85.yaml @@ -0,0 +1,3 @@ +fixes: + - | + - Add environment variable GUAKE_ENABLE_WAYLAND, fixed #1934