Skip to content

Commit

Permalink
guake/main.py - Fix ineffective override of GDK_BACKEND envvar Guake#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zeusintuivo committed Jan 9, 2021
1 parent 7abae01 commit c68face
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guake/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@

log = logging.getLogger(__name__)

# Force use X11 backend under wayland before any import of GDK through dependencies
os.environ["GDK_BACKEND"] = "x11"

from guake.globals import NAME
from guake.globals import bindtextdomain
from guake.support import print_support
Expand Down Expand Up @@ -63,9 +66,6 @@ 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(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fixes:
- Fix ineffective override of the GDK_BACKEND environement variable causing invalid pointer location and display detection (#1820)

0 comments on commit c68face

Please sign in to comment.