Display option in multiscreen (session management)



Hi,

This is in continuation of the discussion at

http://mail.gnome.org/archives/desktop-devel-list/2002-April/msg00139.html

After following the discussion, here is a brief alogorithm of what
we plan to implement for session-management to work in a multiscreen
environment.

1. All GNOME applications need to do the following in their save_session
routine.

a)get the DISPLAY environment variable using getenv ("DISPLAY")
b)call gnome_client_set_environment (client, "DISPLAY", DISPLAY)

NOTE: Currently, there is a bug in gnome_client_set_environment(), that it
stores only the name of the environment variable and not its value in the
~/gnome2/session file. This has been logged as bug #79861 and a patch is
attached against it.

2. If the application is invoked with the --display argument and it uses
gtk_init(), then we need to do a setenv (DISPLAY, ":<display num>.<screen
num>")
before the call to gtk_init(), since gtk_init() seems to strip off
the --display
argument. The --display argument takes precedence over the DISPLAY
environment
variable.

Please give your thoughts/comments on the above.

Thanks,
Jayaraj

**************************Disclaimer************************************
Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.
********************************************************************


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]