updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / ooo-thumbnailer / path_with_spaces_and_icons.patch
blob3d8a8dfbe2b071974d16d6c49b6bdb271ae1a2e7
1 diff -Naur src.ori/ooo-thumbnailer-0.2/ooo-thumbnailer src/ooo-thumbnailer-0.2/ooo-thumbnailer
2 --- src.ori/ooo-thumbnailer-0.2/ooo-thumbnailer 2009-12-15 13:04:44.000000000 +0100
3 +++ src/ooo-thumbnailer-0.2/ooo-thumbnailer 2011-05-09 21:15:15.126576972 +0200
4 @@ -31,7 +31,7 @@
5 test -f ${XDG_CONFIG_HOME:-$HOME/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-$HOME/.config}/user-dirs.dirs
7 # documents in the Templates directory are ignored
8 -if [ `dirname "$ifile"` != ${XDG_TEMPLATES_DIR:-$HOME/Templates} ]; then
9 +if [ "`dirname "$ifile"`" != ${XDG_TEMPLATES_DIR:-$HOME/Templates} ]; then
10 # use imagemagick if it's installed
11 # (currently, always the case until GNOME bug #576750 is fixed and
12 # dependency on imagemagick is removed)
13 @@ -52,20 +52,20 @@
16 # add appropriate OpenOffice.org logo if imagemagick is installed
17 - if [ -x /usr/bin/composite ] && [ -e /usr/share/icons/hicolor/32x32/mimetypes/openofficeorg3-oasis-text.png ]; then
18 + if [ -x /usr/bin/composite ] && [ -e /usr/share/icons/hicolor/32x32/mimetypes/libreoffice-oasis-text.png ]; then
19 estensione=$(expr "$ifile" : '.*\(....\)')
20 case "$estensione" in
21 .odt)
22 - composite -gravity SouthEast /usr/share/icons/hicolor/32x32/mimetypes/openofficeorg3-oasis-text.png "$ofile" "$ofile"
23 + composite -gravity SouthEast /usr/share/icons/hicolor/32x32/mimetypes/libreoffice-oasis-text.png "$ofile" "$ofile"
25 .odp)
26 - composite -gravity SouthEast /usr/share/icons/hicolor/32x32/mimetypes/openofficeorg3-oasis-presentation.png "$ofile" "$ofile"
27 + composite -gravity SouthEast /usr/share/icons/hicolor/32x32/mimetypes/libreoffice-oasis-presentation.png "$ofile" "$ofile"
29 .odg)
30 - composite -gravity SouthEast /usr/share/icons/hicolor/32x32/mimetypes/openofficeorg3-oasis-drawing.png "$ofile" "$ofile"
31 + composite -gravity SouthEast /usr/share/icons/hicolor/32x32/mimetypes/libreoffice-oasis-drawing.png "$ofile" "$ofile"
33 .ods)
34 - composite -gravity SouthEast /usr/share/icons/hicolor/32x32/mimetypes/openofficeorg3-oasis-spreadsheet.png "$ofile" "$ofile"
35 + composite -gravity SouthEast /usr/share/icons/hicolor/32x32/mimetypes/libreoffice-oasis-spreadsheet.png "$ofile" "$ofile"
37 esac