diff options
Diffstat (limited to 'docview/install/install.sh')
-rwxr-xr-x | docview/install/install.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docview/install/install.sh b/docview/install/install.sh new file mode 100755 index 00000000..3adf0d29 --- /dev/null +++ b/docview/install/install.sh @@ -0,0 +1,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/ |