diff options
author | Rael <rael.gc@gmail.com> | 2015-10-14 21:40:17 -0300 |
---|---|---|
committer | Rael <rael.gc@gmail.com> | 2015-10-14 21:40:17 -0300 |
commit | 5754dc119ac6e00de09cca27ebe91ad80424a367 (patch) | |
tree | 3b778a2e921a75e582137c6c24588f5207febcc6 | |
parent | e3c04362d3dc012000dfa3ddf2d4a006061c0c15 (diff) | |
download | scudcloud-5754dc119ac6e00de09cca27ebe91ad80424a367.zip scudcloud-5754dc119ac6e00de09cca27ebe91ad80424a367.tar.gz scudcloud-5754dc119ac6e00de09cca27ebe91ad80424a367.tar.bz2 |
Adding StartupWMClass to .desktop
-rw-r--r-- | scudcloud-1.0/lib/resources.py | 2 | ||||
-rw-r--r-- | scudcloud-1.0/lib/systray.py | 2 | ||||
-rw-r--r-- | scudcloud-1.0/scudcloud.desktop | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/scudcloud-1.0/lib/resources.py b/scudcloud-1.0/lib/resources.py index f4e7e88..cb93d91 100644 --- a/scudcloud-1.0/lib/resources.py +++ b/scudcloud-1.0/lib/resources.py @@ -2,7 +2,7 @@ import os, re class Resources: - APP_NAME = "ScudCloud Slack" + APP_NAME = "scudcloud" SIGNIN_URL = "https://slack.com/signin" MAINPAGE_URL_RE = re.compile(r'^http[s]://[a-zA-Z0-9_\-]+.slack.com/?$') MESSAGES_URL_RE = re.compile(r'^http[s]://[a-zA-Z0-9_\-]+.slack.com/messages/.*') diff --git a/scudcloud-1.0/lib/systray.py b/scudcloud-1.0/lib/systray.py index 68b7600..567a249 100644 --- a/scudcloud-1.0/lib/systray.py +++ b/scudcloud-1.0/lib/systray.py @@ -10,7 +10,7 @@ class Systray(QtGui.QSystemTrayIcon): super(Systray, self).__init__(QtGui.QIcon.fromTheme("scudcloud"), window) self.connect(self, QtCore.SIGNAL("activated(QSystemTrayIcon::ActivationReason)"), self.activatedEvent) self.window = window - self.setToolTip(Resources.APP_NAME) + self.setToolTip('ScudCloud') self.menu = QtGui.QMenu(self.window) self.menu.addAction('Show', self.restore) if scudcloud.Unity is None: diff --git a/scudcloud-1.0/scudcloud.desktop b/scudcloud-1.0/scudcloud.desktop index 4b66ef6..d21cbe6 100644 --- a/scudcloud-1.0/scudcloud.desktop +++ b/scudcloud-1.0/scudcloud.desktop @@ -8,5 +8,6 @@ Name=ScudCloud Comment=ScudCloud is an open-source client for Slack Keywords=slack;chat;instant-messaging;collaboration; Exec=/opt/scudcloud/scudcloud +StartupWMClass=scudcloud Icon=/opt/scudcloud/resources/scudcloud.png |