Programmatically get Display & Screen
Brought to you by:
marha
I am requesting the ability to read the Display & Screen that VcXsrv has bound to at runtime. For example, the mouse-over text on the tray icon such as "mycomputer:12.0"
My particular use case: I use VcXsrv on an Windows RDP server where each user gets their own Display assigned. This feature would allow me to programatically access VcSsrv and then dynamically set the DISPLAY value through a plink command on the Linux system running applications for each user.
It's worth noting that the function winInitNotifyIcon in file xorg-server/hw/xwin/wintrayicon.c initializes the tool tip text. Code in this function could be added to write this string to a file, which then can be read from another program.
Although this would work in some cases, users lacking privileges to create directories and files in certain environments may present a problem. A cleaner and more universal implementation would be the accessibility as described in the feature request, baypassing environmental issues.