Changeset 9cc1b3c


Ignore:
Timestamp:
10/29/13 12:25:37 (12 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
b3ebed5
Parents:
6763bdf
Message:

Turn on the "-auth <authfile>" option for xinit in PCDMd

Location:
src-qt4/PCDM/src
Files:
3 edited

Legend:

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

    r5b07f4a r9cc1b3c  
    2626#define TMPLANGFILE QString("/tmp/.PCDMLang") 
    2727#define TMPAUTOLOGINFILE QString("/tmp/.PCDMAutoLogin") 
    28  
     28#define TMPAUTHFILE QString("/tmp/.PCDMAuth") 
    2929//Make sure that prefix is set 
    3030//#ifndef prefix 
  • src-qt4/PCDM/src/pcdm-xprocess.cpp

    re949bab r9cc1b3c  
    407407  } 
    408408} 
     409// ------------------------------------------- 
     410//   XAUTHORITY FUNCTIONS 
     411// ------------------------------------------- 
     412void XProcess::generateXAuth(){ 
     413  //determine the filename 
     414  XAUTHFILENAME = XauFileName(); 
     415  //generate the structure 
     416  XAUTH = new Xauth; 
     417    XAUTH-> 
     418  //open the file (as new) 
     419  FILE *XFILE = fopen( XAUTHFILENAME, "w+" ); 
     420  //Write the authorization file 
     421  XauWriteAuth( XFILE, XAUTH ); 
     422  //Now close the file 
     423  fclose(XFILE); 
     424} 
     425 
     426void XProcess::revokeXAuth(){ 
     427 
     428} 
  • src-qt4/PCDM/src/pcdm-xprocess.h

    r577dd9b r9cc1b3c  
    2222 
    2323#include "pcdm-backend.h" 
     24 
     25#include <X11/Xauth.h> 
    2426 
    2527class XProcess : public QProcess 
     
    5557        void pam_logFailure(int); 
    5658        void pam_shutdown(); //cleanly close all the PAM stuff 
     59        // XAuthoriy functions 
     60        Xauth XAUTH; //saved authority structure 
     61        char *XAUTHFILENAME; //file location for the authority file 
     62        void generateXAuth(); 
     63        void revokeXAuth(); 
    5764         
     65   
    5866  private slots: 
    5967        void slotCleanup(int, QProcess::ExitStatus); 
Note: See TracChangeset for help on using the changeset viewer.