about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/X11/xpra/fix-paths.patch
blob: a934e5e4cc33bff804ab9de01fc6c2ee27ffa0f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
gdiff --git a/setup.py b/setup.py
index 8d3df15..6156206 100755
--- a/setup.py
+++ b/setup.py
 -2322,11 +2322,7 @@ if v4l2_ENABLED:                                                                                                                                                       
     videodev2_h = "/usr/include/linux/videodev2.h"                                                                                                                                           
     constants_pxi = "xpra/codecs/v4l2/constants.pxi"                                                                                                                                         
     if not os.path.exists(videodev2_h) or should_rebuild(videodev2_h, constants_pxi):                                                                                                        
-        ENABLE_DEVICE_CAPS = 0                                                                                                                                                               
-        if os.path.exists(videodev2_h):                                                                                                                                                      
-            with open(videodev2_h) as f:
-                hdata = f.read()
-            ENABLE_DEVICE_CAPS = int(hdata.find("device_caps")>=0)
+        ENABLE_DEVICE_CAPS = 1
         with open(constants_pxi, "wb") as f:
             f.write(b"DEF ENABLE_DEVICE_CAPS=%i" % ENABLE_DEVICE_CAPS)
     cython_add(Extension("xpra.codecs.v4l2.pusher",
     
diff --git a/xpra/x11/bindings/keyboard_bindings.pyx b/xpra/x11/bindings/keyboard_bindings.pyx
index bd7023d..064c6b5 100644
--- a/xpra/x11/bindings/keyboard_bindings.pyx
+++ b/xpra/x11/bindings/keyboard_bindings.pyx
@@ -21,7 +21,7 @@ from libc.stdlib cimport free, malloc

 DEF PATH_MAX = 1024
 DEF DFLT_XKB_RULES_FILE = b"base"
-DEF DFLT_XKB_CONFIG_ROOT = b"/usr/share/X11/xkb"
+DEF DFLT_XKB_CONFIG_ROOT = b"@xkeyboardconfig@/share/X11/xkb"

 ###################################
 # Headers, python magic