diff options
Diffstat (limited to 'src/xsession.cpp')
-rw-r--r-- | src/xsession.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xsession.cpp b/src/xsession.cpp index 0c41136..4017111 100644 --- a/src/xsession.cpp +++ b/src/xsession.cpp @@ -99,12 +99,14 @@ QIcon XSession::icon() const { icon = "kde"; } else if (this->exec_.contains("gnome", Qt::CaseInsensitive)) { icon = "gnome"; - } else if (this->exec_.contains("term", Qt::CaseInsensitive)) { - icon = "term"; } else if (this->exec_.contains("xfce", Qt::CaseInsensitive)) { icon = "xfce"; + } else if (this->exec_.startsWith("i3", Qt::CaseInsensitive) || this->exec_.contains("/i3", Qt::CaseInsensitive)) { + icon = "i3"; } else if (this->exec_.contains("lxde", Qt::CaseInsensitive)) { icon = "lxde"; + } else if (this->exec_.contains("term", Qt::CaseInsensitive)) { + icon = "term"; } else { icon = "linux"; } |