[#3211|Packaging] Fix missing tray icon

Fixed not including deluge-panel.png in the packaging install.
This commit is contained in:
Calum Lind 2018-11-08 12:29:14 +00:00 committed by Calum Lind
commit b665a4a6f7
2 changed files with 3 additions and 7 deletions

View file

@ -177,7 +177,7 @@ class GtkUiNotifications(CustomNotifications):
return defer.fail(_('libnotify is not installed')) return defer.fail(_('libnotify is not installed'))
if Notify.init('Deluge'): if Notify.init('Deluge'):
self.note = Notify.Notification.new(title, message, 'deluge-tray') self.note = Notify.Notification.new(title, message, 'deluge-panel')
self.note.set_hint('desktop-entry', 'deluge') self.note.set_hint('desktop-entry', 'deluge')
if not self.note.show(): if not self.note.show():
err_msg = _('Failed to popup notification') err_msg = _('Failed to popup notification')

View file

@ -457,12 +457,8 @@ cmdclass = {
if not windows_check() and not osx_check(): if not windows_check() and not osx_check():
for icon_path in glob.glob('deluge/ui/data/icons/hicolor/*x*'): for icon_path in glob.glob('deluge/ui/data/icons/hicolor/*x*'):
size = os.path.basename(icon_path) size = os.path.basename(icon_path)
_data_files.append( icons = glob.glob(os.path.join(icon_path, 'apps', 'deluge*.png'))
( _data_files.append(('share/icons/hicolor/{}/apps'.format(size), icons))
'share/icons/hicolor/{}/apps'.format(size),
['{}/apps/deluge.png'.format(icon_path)],
)
)
_data_files.extend( _data_files.extend(
[ [
( (