mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 00:48:41 +00:00
[#3211|Packaging] Fix missing tray icon
Fixed not including deluge-panel.png in the packaging install.
This commit is contained in:
parent
2c45e59900
commit
b665a4a6f7
2 changed files with 3 additions and 7 deletions
|
@ -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')
|
||||||
|
|
8
setup.py
8
setup.py
|
@ -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(
|
||||||
[
|
[
|
||||||
(
|
(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue