diff options
author | Michael Terry <michael.terry@canonical.com> | 2014-02-18 16:00:57 -0500 |
---|---|---|
committer | Michael Terry <michael.terry@canonical.com> | 2014-02-18 16:00:57 -0500 |
commit | 6b90c538990ac8d8d0d3634dba9c58874f2f3491 (patch) | |
tree | 3d209e5a5be68690fc57148d973419aebc6fabdf /liblightdm-qt | |
parent | 02c262c40c904a57e2981e90543321dba7094c3c (diff) | |
download | lightdm-git-6b90c538990ac8d8d0d3634dba9c58874f2f3491.tar.gz |
Add liblightdm function to ensure a shared data directory
Diffstat (limited to 'liblightdm-qt')
-rw-r--r-- | liblightdm-qt/QLightDM/greeter.h | 1 | ||||
-rw-r--r-- | liblightdm-qt/greeter.cpp | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/liblightdm-qt/QLightDM/greeter.h b/liblightdm-qt/QLightDM/greeter.h index 787485f4..b69105ee 100644 --- a/liblightdm-qt/QLightDM/greeter.h +++ b/liblightdm-qt/QLightDM/greeter.h @@ -80,6 +80,7 @@ public Q_SLOTS: void cancelAuthentication(); void setLanguage (const QString &language); bool startSessionSync(const QString &session=QString()); + void ensureSharedDataDir (const QString &username); Q_SIGNALS: void showMessage(QString text, QLightDM::Greeter::MessageType type); diff --git a/liblightdm-qt/greeter.cpp b/liblightdm-qt/greeter.cpp index 875cac06..1e2a84fc 100644 --- a/liblightdm-qt/greeter.cpp +++ b/liblightdm-qt/greeter.cpp @@ -172,6 +172,12 @@ bool Greeter::startSessionSync(const QString &session) return lightdm_greeter_start_session_sync(d->ldmGreeter, session.toLocal8Bit().constData(), NULL); } +void Greeter::ensureSharedDataDir(const QString &username) +{ + Q_D(Greeter); + lightdm_greeter_ensure_shared_data_dir(d->ldmGreeter, username.toLocal8Bit().constData()); +} + QString Greeter::getHint(const QString &name) const { |