Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Specifically define the authorization file location in the xauth comm…
Browse files Browse the repository at this point in the history
…ands
  • Loading branch information
Ken Moore committed Oct 31, 2013
1 parent 66127c2 commit 4e655ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src-qt4/PCDM/src/main.cpp
Expand Up @@ -172,7 +172,7 @@ int main(int argc, char *argv[])
while(neverquit){
if(runonce){ neverquit = FALSE; }
qDebug() << " -- PCDM Session Starting...";
system("xauth generate :0 ."); //Using MIT-MAGIC-COOKIE-1 protocol
system("xauth -f "+TMPAUTHFILE.toUtf8()+" generate :0 ."); //Using MIT-MAGIC-COOKIE-1 protocol
//MIT-MAGIC-COOKIE-1 is good enough for our purposes since it is a single-user graphical system with no XDMCP
int sid = -1;
int pid = fork();
Expand All @@ -199,6 +199,6 @@ int main(int argc, char *argv[])
qDebug() << "-- PCDM Session Ended --";
if(QFile::exists("/var/run/nologin")){ neverquit = FALSE; }
}
system("xauth remove :0");
system("xauth -f "+TMPAUTHFILE.toUtf8()+" remove :0");
return 0;
}

0 comments on commit 4e655ec

Please sign in to comment.