From 51aa7916a89e141e2e99a9fa678ac923658f7d0d Mon Sep 17 00:00:00 2001 From: Gaetan Semet Date: Tue, 5 Jun 2018 23:51:37 +0200 Subject: [PATCH] force x11 backend under wayland fix #1340 fix #1012 fix #1224 fix #1109 --- Makefile | 2 +- guake/main.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ec47e8063..a4274d050 100644 --- a/Makefile +++ b/Makefile @@ -77,7 +77,7 @@ install-guake: # sudo make install @echo "Installing from on your system is not recommended." @echo "Please prefer you application package manager (apt, yum, ...)" - @/usr/bin/env python3 -m pip install -r requirements.txt + @$(PYTHON_INTERPRETER) -m pip install -r requirements.txt @if [ -f guake/paths.py.dev ]; then rm -f guake/paths.py.dev; fi @if [ -f guake/paths.py ]; then mv guake/paths.py guake/paths.py.dev; fi diff --git a/guake/main.py b/guake/main.py index 462738fba..a75bdc413 100644 --- a/guake/main.py +++ b/guake/main.py @@ -56,6 +56,9 @@ def main(): # Force to xterm-256 colors for compatibility with some old command line programs os.environ["TERM"] = "xterm-256color" + # Force use X11 backend underwayland + os.environ["GDK_BACKEND"] = "x11" + # do not use version keywords here, pbr might be slow to find the version of Guake module parser = OptionParser() parser.add_option(