GNOME Bugzilla – Bug 756439
Regression: Critical warning "g_app_launch_context_get_display: assertion 'G_IS_APP_INFO (info)' failed"
Last modified: 2015-10-13 06:44:01 UTC
Description: Glib critical warning when clicking on URI after git commit ecb0e777 g_app_launch_context_get_display: assertion 'G_IS_APP_INFO (info)' failed Steps to reproduce: 1. Using X11 backend 2. run "gtk3-demo --run=links" 3. Click on the "text" link in the dialog Additional info: g_app_launch_context_get_display() expects the given GAppInfo to be non-null whereas we pass NULL. This can be addressed at two different levels: 1. in gio, no backend actually use GAppInfo for get_display() so there is no reason got gio to check for GAppInfo to be non-null. 2. In gdk X11 backend, by not using g_app_launch_context_get_display() Will post two different patches to do either 1. or 2. so we can choose what's best (or come up with another solution maybe)
Created attachment 313121 [details] [review] Patch for glib/gio That's for option #1 (allow for NULL GAppInfo in g_app_launch_context_get_display())
Created attachment 313122 [details] [review] Patch for gdk/x11 That's for option #2 (do not use g_app_launch_context_get_display() but gdk_display_get_name() instead)
Note, it's either attachment 313121 [details] [review] for glib *or* attachment 313122 [details] [review] for gtk+, *not* both.
Review of attachment 313122 [details] [review]: This looks fine to me
attachment 313122 [details] [review] pushed as commit 4398e12 GdkAppLaunchContext: Use the display name for X11