GNOME Bugzilla – Bug 99461
Set display environment variables on init
Last modified: 2004-12-22 21:47:04 UTC
GIMP runs its plug-ins as separate processes. A problem arises when a user specifies --display on the command line to set the display, that setting isn't passed down to child processes. Currently, there is code in GIMP to set DISPLAY, and I just added code to set GDK_DISPLAY for fb, but it would be nice to not have to special case things in the app. So I propose having the backends set their respective environment variable(s) on initialization. Certainly other apps could benefit too.
Hmm, just realized, not sure if/how this fits in multiscreen/display and migration. Thoughts anyone?
I believe libegg already has multihead-aware variants of the g_spawn functions which set DISPLAY for you.
Indeed it does. But rightfully, part of the code needs to reside in the gdk backends. The code in libegg is X11 specific.
If copying the libegg stuff be sure to find my mail in the desktop-devel-list or gnome-libs-devel or something archives commenting on it, I think it needs a bit of love.
There's a WONTFIX'ed GDK bug to add the egg functions to GDK; you'll find my comments on it there.
Mark - did you actually end up filing a bug? I can't find it on a quick look and don't really remember one way or the other at this point.
Owen: its bug #95897. Not marked as WONTFIX - its on the 2.4 API freeze milestone. Havoc: these are re-worked versions of the original code, aimed at gdk and with slighlty less lame function names.
Dupping, since I think it's basically the same issue and should be handled in a coordinated fashion. *** This bug has been marked as a duplicate of 95897 ***
*** Bug 104612 has been marked as a duplicate of this bug. ***