summaryrefslogtreecommitdiff
path: root/libdecor
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-08-31 10:43:10 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-08-31 10:43:10 +0200
commit736c20f7a2ee0ab2b40850e3872844c584c576c0 (patch)
treeb7fb082fa3836b7c9f4594bbf2ce686e8257f0a9 /libdecor
parent57013133406c1d263078d75c06565eebb8e9445e (diff)
Wayland platform: remove redirection of stderr.
Diffstat (limited to 'libdecor')
-rw-r--r--libdecor/build/Makefile4
-rw-r--r--libdecor/build/fl_libdecor.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/libdecor/build/Makefile b/libdecor/build/Makefile
index 0491b6a29..b391e6bc6 100644
--- a/libdecor/build/Makefile
+++ b/libdecor/build/Makefile
@@ -44,10 +44,10 @@ depend:
: echo "libdecor/build: make depend..."
fl_libdecor.o : fl_libdecor.c ../src/libdecor.c ../../src/xdg-shell-protocol.c ../../src/xdg-decoration-protocol.c ../../src/text-input-protocol.c
- $(CC) $(CFLAGS) $(CFLAGS_DECOR) -c fl_libdecor.c -DLIBDECOR_PLUGIN_API_VERSION=1 -DLIBDECOR_PLUGIN_DIR=\"/usr/local/lib/libdecor/plugins-1\"
+ $(CC) $(CFLAGS) $(CFLAGS_DECOR) -c fl_libdecor.c -DLIBDECOR_PLUGIN_API_VERSION=1 -DLIBDECOR_PLUGIN_DIR=\"\"
fl_libdecor-plugins.o : fl_libdecor-plugins.c ../src/plugins/cairo/libdecor-cairo.c
- $(CC) $(CFLAGS) $(CFLAGS_DECOR) -c fl_libdecor-plugins.c -DLIBDECOR_PLUGIN_API_VERSION=1 -DLIBDECOR_PLUGIN_DIR=\"/usr/local/lib/libdecor/plugins-1\"
+ $(CC) $(CFLAGS) $(CFLAGS_DECOR) -c fl_libdecor-plugins.c -DLIBDECOR_PLUGIN_API_VERSION=1 -DLIBDECOR_PLUGIN_DIR=\"\"
libdecor-cairo-blur.o : ../src/plugins/cairo/libdecor-cairo-blur.c
$(CC) $(CFLAGS_DECOR) -c ../src/plugins/cairo/libdecor-cairo-blur.c
diff --git a/libdecor/build/fl_libdecor.c b/libdecor/build/fl_libdecor.c
index a09155566..a4d3e812b 100644
--- a/libdecor/build/fl_libdecor.c
+++ b/libdecor/build/fl_libdecor.c
@@ -111,16 +111,12 @@ LIBDECOR_EXPORT struct libdecor *libdecor_new(struct wl_display *wl_display, str
wl_callback_add_listener(context->init_callback, &init_wl_display_callback_listener, context);
wl_list_init(&context->frames);
// attempt to dynamically load a libdecor plugin with dlopen()
- FILE *old_stderr = stderr;
- stderr = fopen("/dev/null", "w+"); // avoid "Couldn't open plugin directory" messages
if (init_plugins(context) != 0) { // attempt to load plugin by dlopen()
// no plug-in was found by dlopen(), use built-in plugin instead
// defined in the source code of the built-in plugin: libdecor-cairo.c or libdecor-gtk.c
extern const struct libdecor_plugin_description libdecor_plugin_description;
context->plugin = libdecor_plugin_description.constructor(context);
}
- fclose(stderr); // restore stderr as it was before
- stderr = old_stderr;
wl_display_flush(wl_display);
return context;