Ignore:
Timestamp:
07/11/13 14:28:19 (16 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:
ed51bc3
Parents:
8679296
Message:

Completely revamp how PCDM uses the previous login information. Now you no longer need to specify which desktop to auto-login to if you have auto-login selected. It will first try to check for previous login information for that user, then fall back on the last login for the system in order to try and auto login. Also fix the PCDMd script a bit so that autologins work properly when triggered.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/PCDM/src/pcdm-backend.h

    r1620346 r90dc161  
    1313#include <QDir> 
    1414#include <QProcess> 
     15#include <QFile> 
    1516 
    1617#include "pcdm-config.h" 
     
    3536    static QStringList getSystemUsers(); 
    3637    static QString getUsernameFromDisplayname(QString); 
     38    static QString getDisplayNameFromUsername(QString); 
    3739    static QStringList keyModels(); 
    3840    static QStringList keyLayouts(); 
     
    4951    static QString getALPassword(); 
    5052     
     53    static QString getLastUser(); 
     54    static QString getLastDE(QString); 
     55    static void saveLoginInfo(QString, QString); 
     56     
    5157private:         
    5258    static void loadXSessionsData(); 
    5359    static QStringList readXSessionsFile(QString, QString); 
    5460    static void readSystemUsers(); 
    55   
     61    static void readSystemLastLogin(); 
     62    static void writeSystemLastLogin(QString, QString); 
     63    static QString readUserLastDesktop(QString); 
     64    static void writeUserLastDesktop(QString, QString); 
    5665     
    5766}; 
Note: See TracChangeset for help on using the changeset viewer.