on xenial help sign in
Whoops, requestHomeShown support must have gotten lost in a merge
3565abcMichael Terry
plugins/SessionBroadcast/SessionBroadcast.cpp+5
@@ -52,6 +52,11 @@ void SessionBroadcast::requestUrlStart(const QString &username, const QString &u
52 m_broadcaster->asyncCall("RequestUrlStart", username, url);
52 m_broadcaster->asyncCall("RequestUrlStart", username, url);
53}
53}
54
54
55+void SessionBroadcast::requestHomeShown(const QString &username)
56+{
57+ m_broadcaster->asyncCall("RequestHomeShown", username);
58+}
59+
55void SessionBroadcast::onStartUrl(const QString &username, const QString &url)
60void SessionBroadcast::onStartUrl(const QString &username, const QString &url)
56{
61{
57 // Since this signal is just used for testing, we don't *really* care if
62 // Since this signal is just used for testing, we don't *really* care if
plugins/SessionBroadcast/SessionBroadcast.h+1
@@ -32,6 +32,7 @@ public:
32 explicit SessionBroadcast(QObject *parent = 0);
32 explicit SessionBroadcast(QObject *parent = 0);
33
33
34 Q_INVOKABLE void requestUrlStart(const QString &username, const QString &url);
34 Q_INVOKABLE void requestUrlStart(const QString &username, const QString &url);
35+ Q_INVOKABLE void requestHomeShown(const QString &username);
35
36
36Q_SIGNALS:
37Q_SIGNALS:
37 // This signal isn't actually used by the shell
38 // This signal isn't actually used by the shell
qml/GreeterShell.qml+4−1
@@ -219,7 +219,10 @@ BasicShell {
219 greeter.hideRight()
219 greeter.hideRight()
220 hide()
220 hide()
221 }
221 }
222− onShowDashHome: greeter.show()
222+ onShowDashHome: {
223+ SessionBroadcast.requestHomeShown(LightDM.Greeter.authenticationUser)
224+ greeter.hide()
225+ }
223 }
226 }
224
227
225 Notifications {
228 Notifications {