Permalink
Browse files

Specifically define the authorization file location in the xauth comm…

…ands
  • Loading branch information...
1 parent 66127c2 commit 4e655ec8b5983fb367e00e26524293fffee61576 @beanpole135 beanpole135 committed Oct 31, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src-qt4/PCDM/src/main.cpp
View
4 src-qt4/PCDM/src/main.cpp
@@ -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();
@@ -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.