From 93a9cde1226d0c82849bc71ff4d481d3d2698dc1 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 6 Jun 2011 22:47:17 +0000 Subject: Mon Jun 6 22:47:16 UTC 2011 --- community/fotoxx/fotoxx.install | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'community/fotoxx/fotoxx.install') diff --git a/community/fotoxx/fotoxx.install b/community/fotoxx/fotoxx.install index 03d1a4eaf..90156a79c 100644 --- a/community/fotoxx/fotoxx.install +++ b/community/fotoxx/fotoxx.install @@ -1,17 +1,9 @@ post_install() { - echo "Adding desktop file" - echo "[Desktop Entry]" > /usr/share/applications/fotoxx.desktop - echo "Name=fotoxx" >> /usr/share/applications/fotoxx.desktop - echo "Categories=Graphics" >> /usr/share/applications/fotoxx.desktop - echo "Type=Application" >> /usr/share/applications/fotoxx.desktop - echo "Terminal=false" >> /usr/share/applications/fotoxx.desktop - echo "Exec=/usr/bin/fotoxx" >> /usr/share/applications/fotoxx.desktop - echo "Icon=/usr/share/icons/fotoxx.png" >> /usr/share/applications/fotoxx.desktop - echo "GenericName=Digital Photo Editor" >> /usr/share/applications/fotoxx.desktop + update-desktop-database -q } post_update() { - post_install + update-desktop-database -q } -pre_remove() { - [ -f /usr/share/applications/fotoxx.desktop ] && rm /usr/share/applications/fotoxx.desktop +post_remove() { + update-desktop-database -q } -- cgit v1.2.3-54-g00ecf