]> git.pld-linux.org Git - packages/calibre.git/blame - desktop-integration.patch
- minor cleanups, don't hide python2 behind /usr/bin/env dependency, release 2
[packages/calibre.git] / desktop-integration.patch
CommitLineData
1068761e
JR
1--- calibre-2.44.1/src/calibre/linux.py.orig 2015-11-21 11:22:06.420641478 +0100
2+++ calibre-2.44.1/src/calibre/linux.py 2015-11-21 11:20:41.000000000 +0100
3@@ -781,7 +781,7 @@
4 def install_single_icon(iconsrc, basename, size, context, is_last_icon=False):
5 filename = '%s-%s.png' % (basename, size)
6 render_img(iconsrc, filename, width=int(size), height=int(size))
7- cmd = ['xdg-icon-resource', 'install', '--noupdate', '--context', context, '--size', str(size), filename, basename]
8+ cmd = ['xdg-icon-resource', 'install', '--noupdate', '--novendor', '--context', context, '--size', str(size), filename, basename]
9 if is_last_icon:
10 del cmd[2]
11 cc(cmd)
12@@ -850,7 +850,7 @@
13
14 APPDATA = get_appdata()
15 for x in des:
16- cmd = ['xdg-desktop-menu', 'install', '--noupdate', './'+x]
17+ cmd = ['xdg-desktop-menu', 'install', '--noupdate', '--novendor', './'+x]
18 cc(' '.join(cmd), shell=True)
19 self.menu_resources.append(x)
20 ak = x.partition('.')[0]
7261ec00
JB
21@@ -856,10 +856,9 @@
22 ak = x.partition('.')[0]
23 if ak in APPDATA and os.access(appdata, os.W_OK):
24 self.appdata_resources.append(write_appdata(ak, APPDATA[ak], appdata, translators))
25- cc(['xdg-desktop-menu', 'forceupdate'])
1068761e
JR
26 MIME = P('calibre-mimetypes.xml')
27 self.mime_resources.append(MIME)
28- cc(['xdg-mime', 'install', MIME])
29+ cc(['xdg-mime', 'install', '--novendor', MIME])
30 except Exception:
31 if self.opts.fatal_errors:
32 raise
This page took 0.063891 seconds and 4 git commands to generate.