Merge pull request #112520 from avdv/fix-spacefm-crash
spaceFM: Avoid segfault when running under Wayland
This commit is contained in:
commit
3155a9e966
@ -13,7 +13,13 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "089r6i40lxcwzp60553b18f130asspnzqldlpii53smz52kvpirx";
|
sha256 = "089r6i40lxcwzp60553b18f130asspnzqldlpii53smz52kvpirx";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./glibc-fix.patch ];
|
patches = [
|
||||||
|
# fix compilation error due to missing include
|
||||||
|
./glibc-fix.patch
|
||||||
|
|
||||||
|
# restrict GDK backends to only X11
|
||||||
|
./x11-only.patch
|
||||||
|
];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-bash-path=${pkgs.bash}/bin/bash"
|
"--with-bash-path=${pkgs.bash}/bin/bash"
|
||||||
|
10
pkgs/applications/misc/spacefm/x11-only.patch
Normal file
10
pkgs/applications/misc/spacefm/x11-only.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- a/src/main.c 2021-02-09 13:54:32.847364236 +0100
|
||||||
|
+++ b/src/main.c 2021-02-09 10:41:51.541203271 +0100
|
||||||
|
@@ -1350,6 +1351,7 @@
|
||||||
|
vfs_file_monitor_clean();
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
+ gdk_set_allowed_backends("x11");
|
||||||
|
gtk_init (&argc, &argv);
|
||||||
|
int ret = custom_dialog_init( argc, argv );
|
||||||
|
if ( ret != 0 )
|
Loading…
x
Reference in New Issue
Block a user