[Xfce-bugs] [Bug 3667] apps launched from xfce might appear on the wrong screen

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Sat Nov 17 20:09:09 CET 2007

DO NOT REPLY TO THIS EMAIL.  Also, do not reply via email to the person
whose email is mentioned below.  To comment on this bug, please visit:

pollux at xfce.org changed:

           What    |Removed                     |Added
Attachment #1435 is|0                           |1
           obsolete|                            |

------- Comment #23 from pollux at xfce.org  2007-11-17 19:09 UTC -------
Created an attachment (id=1436)
 --> (http://bugzilla.xfce.org/attachment.cgi?id=1436&action=view)
test code (take 2)

I think I found with this new test code (including envp this time) what is
going on. If I don't provide envp the DISPLAY env variable is not set and
gdk_spawn_on_screen works fine; if I use environ as envp (which contains a
value for the DISPLAY env variable), gdk_spawn_on_screen ignores the screen
parameter and uses the value of DISPLAY. 

According to GDK doc: "the child process is spawned in such an environment that
on calling gdk_display_open() it would be returned a GdkDisplay with screen as
the default screen". Therefore it looks like a bug in Gdk or a lack of
documentation. I'm gonna fill a bug against GDK; in the meantime, as a
workaround, I suggest to remove the DISPLAY variable from the envp given to
gdk_spawn_on_screen in real_xfce_exec_with_envp.

Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the Xfce-bugs mailing list