mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-15 03:23:50 +02:00
lxappearance: fix crash on wayland
This commit is contained in:
parent
99e9d9e525
commit
934f2ec7b7
2 changed files with 22 additions and 1 deletions
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'
|
# Template file for 'lxappearance'
|
||||||
pkgname=lxappearance
|
pkgname=lxappearance
|
||||||
version=0.6.3
|
version=0.6.3
|
||||||
revision=4
|
revision=5
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="$(vopt_enable dbus) $(vopt_enable gtk3)"
|
configure_args="$(vopt_enable dbus) $(vopt_enable gtk3)"
|
||||||
hostmakedepends="pkg-config intltool"
|
hostmakedepends="pkg-config intltool"
|
||||||
|
|
Loading…
Add table
Reference in a new issue