Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 644718
Collapse All | Expand All

(-)file_not_specified_in_diff (-6 / +9 lines)
Line  Link Here
0
-- sddm-0.17.0/src/daemon/SeatManager.h
0
++ sddm-0.17.0/src/daemon/SeatManager.h
Lines 31-38 namespace SDDM { Link Here
31
    class SeatManager : public QObject {
31
    class SeatManager : public QObject {
32
        Q_OBJECT
32
        Q_OBJECT
33
    public:
33
    public:
34
        explicit SeatManager(QObject *parent = 0);
34
        explicit SeatManager(QObject *parent = 0) {}
35
35
36
        void initialize();
36
        void createSeat(const QString &name);
37
        void createSeat(const QString &name);
37
        void removeSeat(const QString &name);
38
        void removeSeat(const QString &name);
38
        void switchToGreeter(const QString &seat);
39
        void switchToGreeter(const QString &seat);
39
-- sddm-0.17.0/src/daemon/SeatManager.cpp
40
++ sddm-0.17.0/src/daemon/SeatManager.cpp
Lines 93-100 namespace SDDM { Link Here
93
        }
93
        }
94
    }
94
    }
95
95
96
    SeatManager::SeatManager(QObject *parent) : QObject(parent) {
96
    void SeatManager::initialize() {
97
98
        if (DaemonApp::instance()->testing() || !Logind::isAvailable()) {
97
        if (DaemonApp::instance()->testing() || !Logind::isAvailable()) {
99
            //if we don't have logind/CK2, just create a single seat immediately and don't do any other connections
98
            //if we don't have logind/CK2, just create a single seat immediately and don't do any other connections
100
            createSeat(QStringLiteral("seat0"));
99
            createSeat(QStringLiteral("seat0"));
101
-- sddm-0.17.0/src/daemon/DaemonApp.cpp
100
++ sddm-0.17.0/src/daemon/DaemonApp.cpp
Lines 75-80 namespace SDDM { Link Here
75
75
76
        // log message
76
        // log message
77
        qDebug() << "Starting...";
77
        qDebug() << "Starting...";
78
79
        // initialize seats only after signals are connected
80
        m_seatManager->initialize();
78
    }
81
    }
79
82
80
    bool DaemonApp::testing() const {
83
    bool DaemonApp::testing() const {

Return to bug 644718