mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-10-09 13:56:19 +00:00
Version 1.0.27: Fix launch in Ubuntu 17.04
Ubuntu 17.04 launch results in segfault if the build was done by GCC 6.2 (works fine with GCC 4.9). Backtrace shows that it crashes in gtk_init_check() call somewhere in libmirclient and tests show that it works fine with GDK_BACKEND=x11. So we use gdk_set_allowed_backends() method to explicitly state that we support only "x11" GDK backend, that way it doesn't try to use libmirclient and it does not crash. Fix #3176 #3162
This commit is contained in:
@@ -44,12 +44,12 @@ bool load(QLibrary &lib, const char *name, Function &func) {
|
||||
return false;
|
||||
}
|
||||
|
||||
func = reinterpret_cast<Function>(lib.resolve(name));
|
||||
if (func) {
|
||||
return true;
|
||||
}
|
||||
func = reinterpret_cast<Function>(lib.resolve(name));
|
||||
if (func) {
|
||||
return true;
|
||||
}
|
||||
LOG(("Error: failed to load '%1' function!").arg(name));
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
|
||||
typedef gboolean (*f_gtk_init_check)(int *argc, char ***argv);
|
||||
@@ -181,6 +181,9 @@ extern f_gtk_image_new gtk_image_new;
|
||||
typedef void (*f_gtk_image_set_from_pixbuf)(GtkImage *image, GdkPixbuf *pixbuf);
|
||||
extern f_gtk_image_set_from_pixbuf gtk_image_set_from_pixbuf;
|
||||
|
||||
typedef void (*f_gdk_set_allowed_backends)(const gchar *backends);
|
||||
extern f_gdk_set_allowed_backends gdk_set_allowed_backends;
|
||||
|
||||
typedef void (*f_gdk_window_set_modal_hint)(GdkWindow *window, gboolean modal);
|
||||
extern f_gdk_window_set_modal_hint gdk_window_set_modal_hint;
|
||||
|
||||
|
Reference in New Issue
Block a user