Changes between Version 2 and Version 3 of Ticket #10953, comment 6


Ignore:
Timestamp:
Jul 27, 2014, 8:37:08 PM (10 years ago)
Author:
ttcoder

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10953, comment 6

    v2 v3  
    2121
    2222EDIT2: storing a few findings here for me to pick up later when time permits..:
    23 - app_server wise, the remote desktop is seemingly served like an additional (hardware) screen, instantiated [http://grok.bikemonkey.org/source/xref/haiku/src/servers/app/ScreenManager.cpp#119 here].
     23- app_server wise, the remote desktop is seemingly served like an additional (hardware) screen, instantiated [http://grok.bikemonkey.org/source/xref/haiku/src/servers/app/ScreenManager.cpp#119 here]. Edit3: its  seems that '''AppServer::_DispatchMessage()''' receives AS_GET_DESKTOP (how??); which calls AppServer::_CreateDesktop(); which calls Desktop::Desktop(); which calls VirtualScreen::SetConfiguration(); which eventually calls ScreenManager::AcquireScreens() -- which in turn instantiates an RDesktop handler, opening a listener port ..etc.
    2424- it's possible the 'RemoteHWInterface' screen is invoked through an incoming sshd connection being forwarded to the app_server(?). I don't understand how/when the 'HTML5HWInterface' is supposed to be instantiated, and couldn't make it occur here.
    2525- it seems applications tell app_server what "screen" they want to be displayed on [http://grok.bikemonkey.org/source/xref/haiku/src/kits/app/AppMisc.cpp#210 here], passing $TARGET_SCREEN to app_server: since they are run from the same Terminal session that was opened by the initial connection, and sub-processes/apps inherit the environment variables of their parent Terminal, all apps launched from there will be displayed on the remote desktop/screen instead of the main screen.