Fix missing desktop file preventing install
This commit is contained in:
parent
af19e3bc62
commit
6e6f6313a8
8
setup.py
8
setup.py
|
@ -238,6 +238,8 @@ if build_libtorrent:
|
|||
|
||||
_ext_modules = [libtorrent]
|
||||
|
||||
desktop_data = 'deluge/ui/data/share/applications/deluge.desktop'
|
||||
|
||||
class build_trans(cmd.Command):
|
||||
description = 'Compile .po files into .mo files & create .desktop file'
|
||||
|
||||
|
@ -267,7 +269,6 @@ class build_trans(cmd.Command):
|
|||
INTLTOOL_MERGE='intltool-merge'
|
||||
INTLTOOL_MERGE_OPTS='--utf8 --quiet --desktop-style'
|
||||
desktop_in='deluge/ui/data/share/applications/deluge.desktop.in'
|
||||
desktop_data='deluge/ui/data/share/applications/deluge.desktop'
|
||||
print('Creating desktop file: %s' % desktop_data)
|
||||
os.system('C_ALL=C ' + '%s '*5 % (INTLTOOL_MERGE, INTLTOOL_MERGE_OPTS, \
|
||||
po_dir, desktop_in, desktop_data))
|
||||
|
@ -474,7 +475,6 @@ class clean(_clean):
|
|||
self.run_command(cmd_name)
|
||||
_clean.run(self)
|
||||
|
||||
desktop_data='deluge/data/share/applications/deluge.desktop'
|
||||
if os.path.exists(desktop_data):
|
||||
print("Deleting %s" % desktop_data)
|
||||
os.remove(desktop_data)
|
||||
|
@ -516,8 +516,8 @@ _data_files = [
|
|||
'docs/man/deluge-console.1'])
|
||||
]
|
||||
|
||||
if not windows_check():
|
||||
_data_files.append(('share/applications', ['deluge/ui/data/share/applications/deluge.desktop']))
|
||||
if not windows_check() and os.path.exists(desktop_data):
|
||||
_data_files.append(('share/applications', [desktop_data]))
|
||||
|
||||
entry_points = {
|
||||
"console_scripts": [
|
||||
|
|
Loading…
Reference in New Issue