From 64086ebfcd26e89474df38e91430507d4ef0b03d Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sat, 28 Jan 2017 11:43:21 +0100
Subject: find_library() doesn't work on Haiku.


diff --git a/ReText/xsettings.py b/ReText/xsettings.py
index a5647a0..0fbfa4d 100644
--- a/ReText/xsettings.py
+++ b/ReText/xsettings.py
@@ -53,15 +53,15 @@ class XSettingsParseError(XSettingsError):
 
 def get_raw_xsettings(display=0):
 	# initialize the libraries
-	xcb_library_name = ctypes.util.find_library('xcb')
-	if xcb_library_name is None:
-		raise XSettingsError('Xcb library not found')
-	xcb = ctypes.CDLL(xcb_library_name)
-
-	c_library_name = ctypes.util.find_library('c')
-	if c_library_name is None:
-		raise XSettingsError('C library not found')
-	c = ctypes.CDLL(c_library_name)
+	# xcb_library_name = ctypes.util.find_library('xcb')
+	# if xcb_library_name is None:
+	#	raise XSettingsError('Xcb library not found')
+	xcb = ctypes.CDLL('libxcb.so.1')
+
+	#c_library_name = ctypes.util.find_library('c')
+	#if c_library_name is None:
+	#	raise XSettingsError('C library not found')
+	c = ctypes.CDLL('libroot.so')
 
 	# set some args and return types
 	xcb.xcb_connect.argtypes = [ctypes.c_char_p, ctypes.POINTER(ctypes.c_int)]
-- 
2.10.2

