Commit 52f65666 authored by Jekyll Wu's avatar Jekyll Wu
Browse files

Add dbus method for returning the name of the default profile

parent 2a4795c5
......@@ -988,6 +988,11 @@ int ViewManager::newSession(QString profile, QString directory)
return session->sessionId();
QString ViewManager::defaultProfile()
return SessionManager::instance()->defaultProfile()->name();
QStringList ViewManager::profileList()
QStringList list;
......@@ -241,6 +241,9 @@ public slots:
int newSession(QString profile, QString directory);
// DBus slot that returns the name of default profile
QString defaultProfile();
// DBus slot that returns a string list of defined (known) profiles
QStringList profileList();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment