X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fplugin.c;h=c3e21ec49c81fcf29a60ab7d963d36c5653e0cf1;hb=75d4428403712469e069c460aea1ea282336a099;hp=281b1cdec08ea344bc1cd76c3b2bd5754ed3ba17;hpb=5d7d6038ca46f6d92fcfa1d46f4ebe76ebc9b2e2;p=chaz%2Fopenbox diff --git a/openbox/plugin.c b/openbox/plugin.c index 281b1cde..c3e21ec4 100644 --- a/openbox/plugin.c +++ b/openbox/plugin.c @@ -44,6 +44,7 @@ static Plugin *plugin_new(char *name) } if (p->module == NULL) { + g_warning(g_module_error()); g_free(p); return NULL; } @@ -139,7 +140,6 @@ void plugin_loadall() if (io == NULL) { /* load the default plugins */ - plugin_open("focus"); plugin_open("keyboard"); plugin_open("mouse"); plugin_open("placement"); @@ -149,7 +149,8 @@ void plugin_loadall() while (g_io_channel_read_line(io, &name, NULL, NULL, &err) == G_IO_STATUS_NORMAL) { g_strstrip(name); - plugin_open(name); + if (name[0] != '\0' && name[0] != '#') + plugin_open(name); g_free(name); } g_io_channel_unref(io);