#! /bin/sh -e case "$1" in configure) PATH_DESKTOPS="/usr/local/share/applications/" PATH_DESKTOPS_ALTERNATIVE="/usr/share/gnome/apps/" PATH_DIRECTORIES="/usr/local/share/desktop-directories/" PATHDESKTOP="/usr/share/applications/" PATHMENU="/etc/xdg/menus/applications-merged/" LLIUREXMENU="/usr/share/lliurex-smart/menu/" PATHLINK="/usr/bin/" #Delete files created by smart.autopackage because them location are wrong for fichero in `find $PATH_DESKTOPS -name "*smarttech*.desktop"` ; do mv $fichero $fichero".old" done for fichero in `find $PATH_DESKTOPS_ALTERNATIVE -name "*smarttech*.desktop"` ; do mv $fichero $fichero".old" done for fichero in `find $PATH_DIRECTORIES -name "*smarttech*.desktop"` ; do mv $fichero $fichero".old" done unud=/var/lib/update-notifier/user.d if /usr/share/lliurex-smart/there-are-gallery; then echo "You may launch smartgm for admin Smart Gallery." fi if [ -d $unud ]; then cp -f /usr/share/lliurex-smart/lliurex-smart.update-notifier "$unud/lliurex-smart" fi #Remove autostart fixed by SMART if [ -e $HOME"/.config/autostart/SMARTBoardDrivers_Service.desktop" ]; then rm $HOME"/.config/autostart/SMARTBoardDrivers_Service.desktop" fi if [ -e $HOME"/.config/autostart/SMARTBoardDrivers_Tools.desktop" ]; then rm $HOME"/.config/autostart/SMARTBoardDrivers_Tools.desktop" fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0