Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 523832 Details for
Bug 644718
x11-misc/sddm-0.17.0-r1 SwitchToGreeter error
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
sddm-0.17.0-switchToGreeter.patch
sddm-0.17.0-switchToGreeter.patch (text/plain), 1.84 KB, created by
Alexander Miller
on 2018-03-14 01:27:56 UTC
(
hide
)
Description:
sddm-0.17.0-switchToGreeter.patch
Filename:
MIME Type:
Creator:
Alexander Miller
Created:
2018-03-14 01:27:56 UTC
Size:
1.84 KB
patch
obsolete
>Subject: [PATCH] Fix switchToGreeter not available without logind >From: Alexander Miller <alex.miller@gmx.de> > >Seats can't be created until SeatManager's signals are >connected to the DisplayManager, or the latter won't see >them and switchToGreeter doesn't work. So split SeatManager >initialization from its constructor and call initialize it >only after all connections have been set up in DaemonApp's >constructor. > >With logind there may have been enough delay before seats >got actually added so things would work, but it's still >cleaner to fix the order. > >Fixes: https://bugs.gentoo.org/644718 > >--- sddm-0.17.0/src/daemon/SeatManager.h >+++ sddm-0.17.0/src/daemon/SeatManager.h >@@ -31,8 +31,9 @@ namespace SDDM { > class SeatManager : public QObject { > Q_OBJECT > public: >- explicit SeatManager(QObject *parent = 0); >+ explicit SeatManager(QObject *parent = 0) {} > >+ void initialize(); > void createSeat(const QString &name); > void removeSeat(const QString &name); > void switchToGreeter(const QString &seat); >--- sddm-0.17.0/src/daemon/SeatManager.cpp >+++ sddm-0.17.0/src/daemon/SeatManager.cpp >@@ -93,8 +93,7 @@ namespace SDDM { > } > } > >- SeatManager::SeatManager(QObject *parent) : QObject(parent) { >- >+ void SeatManager::initialize() { > if (DaemonApp::instance()->testing() || !Logind::isAvailable()) { > //if we don't have logind/CK2, just create a single seat immediately and don't do any other connections > createSeat(QStringLiteral("seat0")); >--- sddm-0.17.0/src/daemon/DaemonApp.cpp >+++ sddm-0.17.0/src/daemon/DaemonApp.cpp >@@ -75,6 +75,9 @@ namespace SDDM { > > // log message > qDebug() << "Starting..."; >+ >+ // initialize seats only after signals are connected >+ m_seatManager->initialize(); > } > > bool DaemonApp::testing() const {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 644718
: 523832