summaryrefslogtreecommitdiff
path: root/docview/install/install.sh
blob: 3adf0d2910b18b6a7f704673946056e30e21ca77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

# Ease up the process of having nice icons for INF files in Nautilus,
# and for launching the correct application when you click on those
# INF files. This script also adds DocView in the Applications menu.
#                - Graeme Geldenhuys (graemeg@gmail.com)
#
# This was tested and working on Ubuntu 10.04

cp x-docview-extension-inf.xml ~/.local/share/mime/packages/
cp docview.desktop ~/.local/share/applications/
cp ../images/inf-book-48x48.png ~/.icons/application-x-docview-extension-inf.png
cp ../images/docview-48x48.png ~/.icons/docview.png

# this registers the mime-type and related icon
update-mime-database ~/.local/share/mime/

# this registers the applications (*.desktop) with the mime-type
update-desktop-database ~/.local/share/applications/