lxappearance: fix crash on wayland
This commit is contained in:
parent
99e9d9e525
commit
934f2ec7b7
21
srcpkgs/lxappearance/patches/fix-wayland.patch
Normal file
21
srcpkgs/lxappearance/patches/fix-wayland.patch
Normal file
@ -0,0 +1,21 @@
|
||||
commit df82dc59c7b3ef5fa65898cbdd459d1fb8f3c9bf
|
||||
Author: q66 <daniel@octaforge.org>
|
||||
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 )
|
||||
{
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user