Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Specifically define the authorization file location in the xauth comm…

…ands
  • Loading branch information...
commit 4e655ec8b5983fb367e00e26524293fffee61576 1 parent 66127c2
Ken Moore beanpole135 authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 src-qt4/PCDM/src/main.cpp
4 src-qt4/PCDM/src/main.cpp
@@ -172,7 +172,7 @@ int main(int argc, char *argv[])
172 172 while(neverquit){
173 173 if(runonce){ neverquit = FALSE; }
174 174 qDebug() << " -- PCDM Session Starting...";
175   - system("xauth generate :0 ."); //Using MIT-MAGIC-COOKIE-1 protocol
  175 + system("xauth -f "+TMPAUTHFILE.toUtf8()+" generate :0 ."); //Using MIT-MAGIC-COOKIE-1 protocol
176 176 //MIT-MAGIC-COOKIE-1 is good enough for our purposes since it is a single-user graphical system with no XDMCP
177 177 int sid = -1;
178 178 int pid = fork();
@@ -199,6 +199,6 @@ int main(int argc, char *argv[])
199 199 qDebug() << "-- PCDM Session Ended --";
200 200 if(QFile::exists("/var/run/nologin")){ neverquit = FALSE; }
201 201 }
202   - system("xauth remove :0");
  202 + system("xauth -f "+TMPAUTHFILE.toUtf8()+" remove :0");
203 203 return 0;
204 204 }

0 comments on commit 4e655ec

Please sign in to comment.
Something went wrong with that request. Please try again.