From 0fcb1a7922e1768db96d43a4df4cd0efb5f2c213 Mon Sep 17 00:00:00 2001
From: Klismann Smoger Mottin <ksm09@c3sl.ufpr.br>
Date: Wed, 14 Dec 2011 16:57:09 -0200
Subject: [PATCH] Added postinst to remove symbolic links

The installation of libreoffice adds some symbolic links in the directory
/usr/share/applications which conflicts with the .desktop from LE.

The postinst script will remove them.

Signed-off-by: Klismann Smoger Mottin <ksm09@c3sl.ufpr.br>
Acked-by: Adriano da Luz <al08@c3sl.ufpr.br>
---
 pacote/DEBIAN/postinst | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100755 pacote/DEBIAN/postinst

diff --git a/pacote/DEBIAN/postinst b/pacote/DEBIAN/postinst
new file mode 100755
index 000000000..85919f5e7
--- /dev/null
+++ b/pacote/DEBIAN/postinst
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+# Copyright (C) 2004-2010 Centro de Computacao Cientifica e Software Livre
+# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+#
+# This file is part of le-office
+#
+# le-office is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+# USA.
+
+
+# Path which the symbolic links are
+SL_PATH="/usr/share/applications"
+
+for i in $SL_PATH/libreoffice* ; do
+    rm -f $i
+done
+
-- 
GitLab