From 934f2ec7b7802b69186793dc3af744a076f6a0da Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 15 Feb 2021 19:55:52 +0100 Subject: [PATCH] lxappearance: fix crash on wayland --- .../lxappearance/patches/fix-wayland.patch | 21 +++++++++++++++++++ srcpkgs/lxappearance/template | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/lxappearance/patches/fix-wayland.patch diff --git a/srcpkgs/lxappearance/patches/fix-wayland.patch b/srcpkgs/lxappearance/patches/fix-wayland.patch new file mode 100644 index 00000000000..0c31d935a2b --- /dev/null +++ b/srcpkgs/lxappearance/patches/fix-wayland.patch @@ -0,0 +1,21 @@ +commit df82dc59c7b3ef5fa65898cbdd459d1fb8f3c9bf +Author: q66 +Date: Mon Feb 15 19:45:23 2021 +0100 + + fix segfault under wayland + +diff --git src/lxappearance.c src/lxappearance.c +index a4b7db3..b6441ae 100644 +--- src/lxappearance.c ++++ src/lxappearance.c +@@ -86,6 +86,10 @@ static gboolean check_lxde_dbus() + + static void check_lxsession() + { ++ /* on wayland, avoid touching X bits */ ++ if (g_getenv("WAYLAND_DISPLAY")) ++ return; ++ + lxsession_atom = XInternAtom( GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), "_LXSESSION", True ); + if( lxsession_atom != None ) + { diff --git a/srcpkgs/lxappearance/template b/srcpkgs/lxappearance/template index 33d768aeb94..7fcaad225f8 100644 --- a/srcpkgs/lxappearance/template +++ b/srcpkgs/lxappearance/template @@ -1,7 +1,7 @@ # Template file for 'lxappearance' pkgname=lxappearance version=0.6.3 -revision=4 +revision=5 build_style=gnu-configure configure_args="$(vopt_enable dbus) $(vopt_enable gtk3)" hostmakedepends="pkg-config intltool"