echo "* bbi path = ${BBI}"
# The desktop launcher & its icon
-echo "* Creating bbi launcher on desktop (${HOME}/Desktop/bbi.desktop)"
-sed s,HOME,${HOME},g bbi.desktop.in > bbi.desktop.tmp
-sed s,BBI,${BBI},g bbi.desktop.tmp > bbi.desktop.tmp2
-cp bbi.desktop.tmp2 ${HOME}/Desktop
+echo "* Creating bbi launcher on desktop (${HOME}/.local/share/applications/bbi.desktop)"
+sed s,HOME,${HOME},g bbi.desktop.in > tmp
+sed s,BBI,${BBI},g tmp > tmp2
+mv tmp2 ${HOME}/.local/share/applications/bbi.desktop
+rm tmp
+
+ln -s ${HOME}/.local/share/applications/bbi.desktop ${HOME}/Desktop/bbi.desktop
echo "* Copying 'bbi-icon.png' in ${HOME}/.local/share/applications/"
cp bbi-icon.png ${HOME}/.local/share/applications/
# add the type 'text/bbs' to mime database
-echo "* Adding mime-type 'test/bbs' to mime database (${HOME}/.local/share/mime/packages/bbs.xml)"
+echo "* Adding mime-type 'text/bbs' to mime database (${HOME}/.local/share/mime/packages/bbs.xml)"
if [ ! -d ${HOME}/.local/share/mime ]
then
mkdir ${HOME}/.local/share/mime