Ignore:
Timestamp:
11/04/13 14:04:44 (9 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
b6cbe03
Parents:
7257d51
Message:

Add in the xhost authentication routine when logging in a user. This will allow the user access to the display. Also fix the authorization file cleanup between sessions of PCDM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/PCDM/src/main.cpp

    r65d5ce2 r6449f61  
    173173  if(runonce){ neverquit = FALSE; } 
    174174  qDebug() << " -- PCDM Session Starting..."; 
    175   system("xauth -f "+TMPAUTHFILE.toUtf8()+" generate :0 ."); //Using MIT-MAGIC-COOKIE-1 protocol 
    176   //MIT-MAGIC-COOKIE-1 is good enough for our purposes since it is a single-user graphical system with no XDMCP 
    177175  int sid = -1; 
    178176  int pid = fork(); 
     
    200198  if(QFile::exists("/var/run/nologin")){ neverquit = FALSE; }  
    201199 } 
    202  system("xauth -f "+TMPAUTHFILE.toUtf8()+" remove :0"); 
    203200 return 0; 
    204201} 
Note: See TracChangeset for help on using the changeset viewer.