Ejemplo n.º 1
0
void XProcess::loginToXSession(QString username, QString password, QString desktop){
  //Setup the variables
  xuser = username;
  xpwd = password;
  xhome = Backend::getUserHomeDir(xuser);
  xcmd = Backend::getDesktopBinary(desktop);
  xde = desktop;
  //Now start the login process
  startXSession();
}
Ejemplo n.º 2
0
void XProcess::loginToXSession(QString username, QString password, QString desktop, QString lang, QString devPassword, bool anon){
  //Setup the variables
  xuser = username;
  xpwd = password;
  xhome = Backend::getUserHomeDir(xuser);
  xcmd = Backend::getDesktopBinary(desktop);
  xshell = Backend::getUserShell(xuser);
  xde = desktop;
  xlang = lang;
  xdevpass = devPassword;
  xanonlogin = anon;
  //Now start the login process
  if( !startXSession() ){
    //Could not continue after session changed significantly - close down the session to restart
    QCoreApplication::exit(-1); //special code to make sure we are just restarting the PCDM session (not the full X session)
  }
}
Ejemplo n.º 3
0
void XProcess::loginToXSession(QString username, QString password, QString desktop, QString lang, QString devPassword, bool anon){
  if( !QFile::exists("/var/tmp/.pcdm-x-started-"+VT) ){
    QProcess::startDetached("touch /var/tmp/.pcdm-x-started-"+VT);
  }
  //Setup the variables
  xuser = username;
  xpwd = password;
  xhome = USERS->homedir(xuser);
  xcmd = Backend::getDesktopBinary(desktop);
  xshell = USERS->shell(xuser);
  xde = desktop;
  xlang = lang;
  xdevpass = devPassword;
  xanonlogin = anon;
  //Now start the login process
  if( !startXSession() ){
    //Could not continue after session changed significantly - close down the session to restart
    QCoreApplication::exit(-1); //special code to make sure we are just restarting the PCDM session (not the full X session)
  }
}