File: replace_thumbnailer.sh

package info (click to toggle)
shotwell 0.32.13-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 57,512 kB
  • sloc: xml: 55,555; cpp: 354; ansic: 157; python: 130; sh: 46; makefile: 12
file content (21 lines) | stat: -rwxr-xr-x 707 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/bash

if [ -e /usr/lib/shotwell-video-thumbnailer.org ] ; then
    echo ' /usr/lib/shotwell-video-thumbnailer.org exists!'
    echo ' break'
    exit 1
fi

echo '**** backup ****'
mv /usr/lib/shotwell-video-thumbnailer /usr/lib/shotwell-video-thumbnailer.org

echo '**** install ffmpegthumbnailer ****'
apt-get install ffmpegthumbnailer -y

echo '**** install new file ****'
touch /usr/lib/shotwell-video-thumbnailer
chmod  --reference=/usr/lib/shotwell-video-thumbnailer.org /usr/lib/shotwell-video-thumbnailer

echo '#! /bin/bash' >/usr/lib/shotwell-video-thumbnailer
echo '' >>/usr/lib/shotwell-video-thumbnailer
echo 'ffmpegthumbnailer -i "$1" -o - -c png' >>/usr/lib/shotwell-video-thumbnailer