Skip to content
  1. Jun 07, 2010
  2. May 17, 2010
  3. Mar 24, 2010
  4. Jan 28, 2010
  5. Jan 21, 2010
  6. Nov 27, 2009
  7. Nov 09, 2009
  8. Nov 06, 2009
  9. Nov 03, 2009
  10. Sep 15, 2009
  11. Sep 11, 2009
    • Halton Huo's avatar
      Add display-type property when open a new session from GdmSessionWorker. · ac5fc4f2
      Halton Huo authored
      Corresponding ConsoleKit multi-seat commit is
       6a432264767b3e8383270c349899926ca2d326be
      
      This allow the user session can inherit display-type property from login
      window session. It is very useful for dynamic usage like Sunray to get
      right sessions list which it only care about. Without this change, the user
      session won't have the right display-type property, hence can not
      get the right results for specific display-type.
      
      For example:
      1) Sunray will create a login window session
      $/usr/sbin/ck-seat-tool -a --display-type=Sunray display=:11
      
      2) If we run
      $/usr/bin/ck-list-sessions -f session-id,x11-display,display-type
      'Session11'     ':11'   'Sunray'
      'SessionSeat1Local'     ':0'    'Local'
      
      3) If user get login, the login session Session11 will be removed,
      a new user session Session12 will be created.
      
      Without this commit, Session12 do not display-type
      $/usr/bin/ck-list-sessions -f session-id,x11-display,display-type
      'Session12'     ':11'   ''
      'SessionSeat1Local'     ':0'    'Local'
      
      With this commit, Session12 inherit display-type from Session11,
      that is what we want.
      $/usr/bin/ck-list-sessions -f session-id,x11-display,display-type
      'Session12'     ':11'   'Sunray'
      'SessionSeat1Local'     ':0'    'Local'
      
      The display-type property is typically passed as following sequence:
       1) console-kit-daemon init and create a static seat "Seat1" and
          create a un-open session "SessionSeat1Local", stay unmanaged status
      
       2) gdm-binary init and send "Manage" for "Seat1"
      
       3) console-kit-daemon go through all un-open sessions for "Seat1", and
          send out "OpenSessionRequest" for that session with property display-type.
      
       4) gdm-binary receive "OpenSessionRequest" for given session,
          4.1) Create a GdmDisplay with property display-type.
          4.2) Spwan a gdm-simple-slave process.
          4.3) Create GdmSimpleSlave with property display-type by quering GdmDisplay.
          4.4) Create a GdmSessionDirect with property display-type.
          4.5) Sqawn gdm-session-worker process, the properties includs display-type
               are get from "Setup" or "SetupForUser".
      
       5) When user sucessfully logged in, GdmSessionWorker will create a user
          session by call "OpenSessionWithParameters" with property display-type
      
       6) console-kit-daemon remove "OpenSessionWithParameters", then create a new
          session "Session1" with property display-type.
      ac5fc4f2
  12. Sep 09, 2009
  13. Sep 04, 2009
  14. Aug 10, 2009
  15. Aug 04, 2009
  16. Aug 03, 2009