summaryrefslogtreecommitdiffstats
path: root/src/xsession.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xsession.cpp')
-rw-r--r--src/xsession.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/xsession.cpp b/src/xsession.cpp
index 8c32df5..f4cc3d9 100644
--- a/src/xsession.cpp
+++ b/src/xsession.cpp
@@ -74,6 +74,10 @@ bool XSession::isActive() const {
return true;
}
+bool XSession::isValid() const {
+ return true;
+}
+
bool XSession::isLocked() const {
return false;
}
@@ -86,12 +90,16 @@ QString XSession::icon() const {
QString icon(this->icon_);
if (icon.isEmpty()) {
- if (this->name_.contains("kde", Qt::CaseInsensitive)) {
+ if (this->exec_.contains("kde", Qt::CaseInsensitive)) {
icon = "kde";
- } else if (this->name_.contains("gnome", Qt::CaseInsensitive)) {
+ } else if (this->exec_.contains("gnome", Qt::CaseInsensitive)) {
icon = "gnome";
- } else if (this->name_.contains("xfce", Qt::CaseInsensitive)) {
+ } else if (this->exec_.contains("term", Qt::CaseInsensitive)) {
+ icon = "term";
+ } else if (this->exec_.contains("xfce", Qt::CaseInsensitive)) {
icon = "xfce";
+ } else if (this->exec_.contains("lxde", Qt::CaseInsensitive)) {
+ icon = "lxde";
} else {
icon = "linux";
}