* Adobe Reader: install .desktop file in the right place.

svn path=/nixpkgs/trunk/; revision=33297
This commit is contained in:
Eelco Dolstra 2012-03-20 14:41:24 +00:00
parent 34fcba81be
commit 73ce1dd4bb

View File

@ -26,3 +26,12 @@ substituteInPlace $out/Adobe/Reader*/bin/acroread \
mkdir -p $out/bin
ln -s $out/Adobe/Reader*/bin/acroread $out/bin/acroread
mkdir -p $out/share/applications
mv $out/Adobe/Reader9/Resource/Support/AdobeReader.desktop $out/share/applications/
sed -i $out/share/applications/AdobeReader.desktop \
-e "s|Icon=.*|Icon=$out/Adobe/Reader9/Resource/Icons/128x128/AdobeReader9.png|"
# Not sure if this works.
mkdir -p $out/share/mimelnk/application
mv $out/Adobe/Reader9/Resource/Support/vnd*.desktop $out/share/mimelnk/application