Comment 31 for bug 346964

Revision history for this message
yakovlev (gregalex) wrote :

Actually, this helps a lot.

What this tells us is that this is actually a bug in glib2.0 function g_app_info_launch_uris().

The bug occurs when this is launched with a context including a screen with gdk_screen_make_display_name(screen)=":0.1" but the parent process has DISPLAY=":0.0"

Here is a snippet of the relevent code sequence in gnome-panel:

...
        gdk_app_launch_context_set_screen (context, screen);
        gdk_app_launch_context_set_timestamp (context, timestamp);

        local_error = NULL;
        retval = g_app_info_launch_uris (appinfo, uris,
                                         (GAppLaunchContext *) context,
...