After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 99461 - Set display environment variables on init
Set display environment variables on init
Status: RESOLVED DUPLICATE of bug 95897
Product: gtk+
Classification: Platform
Component: Backend: X11
2.1.x
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
: 104612 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-11-25 00:28 UTC by Manish Singh
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Manish Singh 2002-11-25 00:28:27 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.
Comment 1 Manish Singh 2002-11-25 00:31:35 UTC
Hmm, just realized, not sure if/how this fits in multiscreen/display
and migration. Thoughts anyone?
Comment 2 Matthias Clasen 2002-11-25 11:25:41 UTC
I believe libegg already has multihead-aware variants of the
g_spawn functions 
which set DISPLAY for you.
Comment 3 Manish Singh 2002-11-25 17:13:31 UTC
Indeed it does. But rightfully, part of the code needs to reside in
the gdk backends. The code in libegg is X11 specific.
Comment 4 Havoc Pennington 2002-11-25 17:16:02 UTC
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.
Comment 5 Owen Taylor 2002-11-25 17:21:31 UTC
There's a WONTFIX'ed GDK bug to add the egg functions to 
GDK; you'll find my comments on it there.
Comment 6 Owen Taylor 2002-11-25 23:04:01 UTC
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.
Comment 7 Mark McLoughlin 2002-11-26 05:20:39 UTC
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.
Comment 8 Owen Taylor 2002-12-03 02:13:45 UTC
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 ***
Comment 9 Owen Taylor 2003-01-28 15:30:19 UTC
*** Bug 104612 has been marked as a duplicate of this bug. ***