summaryrefslogtreecommitdiffstats
path: root/src/xsession.cpp
diff options
context:
space:
mode:
authorSimon Rettberg2018-06-15 14:27:31 +0200
committerSimon Rettberg2018-06-15 14:27:31 +0200
commit8da3052b58654b9b50b49ace8d0dbb54b688c021 (patch)
tree299107539f13be45dbe05e4f1cff8115f5bfe70f /src/xsession.cpp
parentFix indentation, cleanup, refactoring, deletions (diff)
downloadvmchooser2-8da3052b58654b9b50b49ace8d0dbb54b688c021.tar.gz
vmchooser2-8da3052b58654b9b50b49ace8d0dbb54b688c021.tar.xz
vmchooser2-8da3052b58654b9b50b49ace8d0dbb54b688c021.zip
Add i3 icon
Diffstat (limited to 'src/xsession.cpp')
-rw-r--r--src/xsession.cpp6
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";
}