From 5754dc119ac6e00de09cca27ebe91ad80424a367 Mon Sep 17 00:00:00 2001 From: Rael Date: Wed, 14 Oct 2015 21:40:17 -0300 Subject: Adding StartupWMClass to .desktop --- scudcloud-1.0/lib/resources.py | 2 +- scudcloud-1.0/lib/systray.py | 2 +- 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 -- cgit v1.1