[jhbuild/wip/hadess/expand-xcursor-path] environment: Inherit from the system cursors



commit 12ced430e15d16b38b2766a831ff1a45da5418e2
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Dec 16 16:26:45 2019 +0100

    environment: Inherit from the system cursors
    
    When launching an application in jhbuild and the application uses more
    than the builtin cursors, it's likely that there will be warnings such
    as:
    Gdk-Message: 11:32:54.260: Unable to load hand2 from the cursor theme
    
    Inherit from the likely more complete cursors installed in the system if
    the user hasn't also installed a cursor in their jhbuild env.

 jhbuild/environment.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/jhbuild/environment.py b/jhbuild/environment.py
index 85b5d9db..5531669d 100644
--- a/jhbuild/environment.py
+++ b/jhbuild/environment.py
@@ -211,6 +211,9 @@ def setup_env(prefix):
     addpath('XDG_CONFIG_DIRS', xdgconfigdir)
 
     # XCURSOR_PATH
+    xcursordir = '/usr/share/icons'
+    if os.path.exists(xcursordir):
+        addpath('XCURSOR_PATH', xcursordir)
     xcursordir = os.path.join(prefix, 'share', 'icons')
     addpath('XCURSOR_PATH', xcursordir)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]