* x11conn.c (x11_available): If the X11 shared library cannot be

found (maybe because there is neither an .la file nor a .so
	symlink), try libX11.so.6 explicitly. Fixes Bug #24505.
This commit is contained in:
Roland Illig 2008-12-19 11:36:48 +00:00
parent bdf23438af
commit 281ec8b875
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2008-12-19 Roland Illig <roland.illig@gmx.de>
* x11conn.c (x11_available): If the X11 shared library cannot be
found (maybe because there is neither an .la file nor a .so
symlink), try libX11.so.6 explicitly. Fixes Bug #24505.
2008-12-18 Roland Illig <roland.illig@gmx.de>
* main.c (main): It is now possible to invoke mcedit with

View File

@ -128,11 +128,10 @@ static gboolean x11_available(void)
return TRUE;
x11_module_fname = g_module_build_path (NULL, "X11");
if (x11_module_fname == NULL)
return FALSE;
x11_module = g_module_open (x11_module_fname, G_MODULE_BIND_LAZY);
if (x11_module == NULL)
x11_module = g_module_open ("libX11.so.6", G_MODULE_BIND_LAZY);
g_free (x11_module_fname);
if (x11_module == NULL)