summaryrefslogtreecommitdiff
path: root/libre/calibre-libre/desktop_integration.patch
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-12-16 21:24:26 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-12-16 21:24:26 -0200
commit71cc202a7c4a9ed18669c2bead3c17ca0fcd5e38 (patch)
tree08bcc441a6bee8d8d9e626d7e4a82b7a219d75a6 /libre/calibre-libre/desktop_integration.patch
parent11591add702e2e25988cf7b00ca0a65ff93e54cb (diff)
downloadabslibre-71cc202a7c4a9ed18669c2bead3c17ca0fcd5e38.tar.gz
abslibre-71cc202a7c4a9ed18669c2bead3c17ca0fcd5e38.tar.bz2
abslibre-71cc202a7c4a9ed18669c2bead3c17ca0fcd5e38.zip
calibre-libre-1.15.0-1: updating version
Diffstat (limited to 'libre/calibre-libre/desktop_integration.patch')
-rw-r--r--libre/calibre-libre/desktop_integration.patch24
1 files changed, 12 insertions, 12 deletions
diff --git a/libre/calibre-libre/desktop_integration.patch b/libre/calibre-libre/desktop_integration.patch
index 2749e1d1c..c98b225b8 100644
--- a/libre/calibre-libre/desktop_integration.patch
+++ b/libre/calibre-libre/desktop_integration.patch
@@ -1,6 +1,6 @@
diff -aur calibre/src/calibre/linux.py calibre.new/src/calibre/linux.py
---- calibre/src/calibre/linux.py 2013-12-06 05:13:34.000000000 +0100
-+++ calibre.new/src/calibre/linux.py 2013-12-08 20:30:59.097240827 +0100
+--- calibre/src/calibre/linux.py 2013-12-13 03:47:23.000000000 +0100
++++ calibre.new/src/calibre/linux.py 2013-12-13 11:24:15.165257058 +0100
@@ -451,18 +451,6 @@
self.setup_completion()
if islinux or isbsd:
@@ -29,7 +29,7 @@ diff -aur calibre/src/calibre/linux.py calibre.new/src/calibre/linux.py
if not os.path.exists(os.path.dirname(f)):
os.makedirs(os.path.dirname(f))
if zsh.dest:
-@@ -657,48 +645,28 @@
+@@ -657,51 +645,32 @@
with TemporaryDirectory() as tdir, CurrentDir(tdir), \
PreserveMIMEDefaults():
@@ -57,14 +57,15 @@ diff -aur calibre/src/calibre/linux.py calibre.new/src/calibre/linux.py
- render_img('viewer.png', 'calibre-viewer.png')
- cc('xdg-icon-resource install --size 128 calibre-viewer.png calibre-viewer', shell=True)
- self.icon_resources.append(('apps', 'calibre-viewer', '128'))
-- render_img('tweak.png', 'calibre-ebook-tweak.png')
-- cc('xdg-icon-resource install --size 128 calibre-ebook-tweak.png calibre-ebook-tweak', shell=True)
-- self.icon_resources.append(('apps', 'calibre-ebook-tweak', '128'))
+- render_img('tweak.png', 'calibre-ebook-edit.png')
+- cc('xdg-icon-resource install --size 128 calibre-ebook-edit.png calibre-ebook-edit', shell=True)
+- self.icon_resources.append(('apps', 'calibre-ebook-edit', '128'))
+ dir = os.path.join(self.opts.staging_sharedir,'../pixmaps')
+ os.mkdir(dir)
+ render_img('mimetypes/lrf.png', os.path.join(dir,'calibre-lrf.png'))
+ render_img('lt.png', os.path.join(dir, 'calibre-gui.png'))
+ render_img('viewer.png', os.path.join(dir, 'calibre-viewer.png'))
++ render_img('edit.png', os.path.join(dir, 'calibre-ebook-tweak.png'))
mimetypes = set([])
for x in all_input_formats():
@@ -87,18 +88,17 @@ diff -aur calibre/src/calibre/linux.py calibre.new/src/calibre/linux.py
+ f = open(os.path.join(dir, 'calibre-ebook-viewer.desktop'), 'wb')
f.write(EVIEWER)
write_mimetypes(f)
- f = open('calibre-ebook-tweak.desktop', 'wb')
-@@ -706,22 +674,15 @@
+- f = open('calibre-ebook-edit.desktop', 'wb')
++ f = open(os.path.join(dir, 'calibre-ebook-edit.desktop'), 'wb')
+ f.write(ETWEAK)
mt = [guess_type('a.' + x.lower())[0] for x in SUPPORTED]
f.write('MimeType=%s;\n'%';'.join(mt))
- f.close()
-- f = open('calibre-gui.desktop', 'wb')
-+ f = open(os.path.join(dir, 'calibre-gui.desktop'), 'wb')
+@@ -710,18 +679,11 @@
f.write(GUI)
write_mimetypes(f)
f.close()
- des = ('calibre-gui.desktop', 'calibre-lrfviewer.desktop',
-- 'calibre-ebook-viewer.desktop', 'calibre-ebook-tweak.desktop')
+- 'calibre-ebook-viewer.desktop', 'calibre-ebook-edit.desktop')
- for x in des:
- cmd = ['xdg-desktop-menu', 'install', '--noupdate', './'+x]
- cc(' '.join(cmd), shell=True)