mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
* key.c (init_key_x11): Don't try to use X11 if DISPLAY is not
set in the environment.
This commit is contained in:
parent
92da7e9dc0
commit
66b2b1381c
@ -1,3 +1,8 @@
|
|||||||
|
2003-02-23 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* key.c (init_key_x11): Don't try to use X11 if DISPLAY is not
|
||||||
|
set in the environment.
|
||||||
|
|
||||||
2003-02-22 Pavel Tsekov <ptsekov@gmx.net>
|
2003-02-22 Pavel Tsekov <ptsekov@gmx.net>
|
||||||
|
|
||||||
* key.c: Add support for dynamic loading of libX11.
|
* key.c: Add support for dynamic loading of libX11.
|
||||||
|
@ -269,7 +269,12 @@ init_key_x11 (void)
|
|||||||
{
|
{
|
||||||
#ifdef HAVE_GMODULE
|
#ifdef HAVE_GMODULE
|
||||||
gchar *x11_module_fname;
|
gchar *x11_module_fname;
|
||||||
|
#endif /* HAVE_GMODULE */
|
||||||
|
|
||||||
|
if (!getenv ("DISPLAY"))
|
||||||
|
return;
|
||||||
|
|
||||||
|
#ifdef HAVE_GMODULE
|
||||||
x11_module_fname = g_module_build_path (NULL, "X11");
|
x11_module_fname = g_module_build_path (NULL, "X11");
|
||||||
|
|
||||||
if (!x11_module_fname)
|
if (!x11_module_fname)
|
||||||
|
Loading…
Reference in New Issue
Block a user