Also fail with error if webextension could not be read.
/* default window dimensions */
#define WIN_WIDTH 800
#define WIN_HEIGHT 600
+
+/* if set to 1 vimb will check if the webextension could be found. */
+#define CHECK_WEBEXTENSION_ON_STARTUP 1
const char *name;
GVariant *vdata;
-#ifdef DEBUG
+#if (CHECK_WEBEXTENSION_ON_STARTUP)
char *extension = g_build_filename(EXTENSIONDIR, "webext_main.so", NULL);
if (!g_file_test(extension, G_FILE_TEST_IS_REGULAR)) {
- g_warning("Cannot access web extension %s", extension);
+ g_error("Cannot access web extension %s", extension);
}
g_free(extension);
#endif