diff options
author | Simon Rettberg | 2018-06-15 14:27:31 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-06-15 14:27:31 +0200 |
commit | 8da3052b58654b9b50b49ace8d0dbb54b688c021 (patch) | |
tree | 299107539f13be45dbe05e4f1cff8115f5bfe70f /src/xsession.cpp | |
parent | Fix indentation, cleanup, refactoring, deletions (diff) | |
download | vmchooser2-8da3052b58654b9b50b49ace8d0dbb54b688c021.tar.gz vmchooser2-8da3052b58654b9b50b49ace8d0dbb54b688c021.tar.xz vmchooser2-8da3052b58654b9b50b49ace8d0dbb54b688c021.zip |
Add i3 icon
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"; } |