Changeset 3799


Ignore:
Timestamp:
Mar 2, 2017, 10:38:05 AM (2 years ago)
Author:
Juanma
Message:

WIP on telegram wrapper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zero-lliurex-installers/trunk/fuentes/zero-lliurex-telegram.install/usr/bin/lliurex-telegram.sh

    r3798 r3799  
    22#Wrapper for telegram
    33#Adds info in the user's telegram.desktop
    4 #Parms: Location of the telegram executable
    54####
    65TELEGRAM=${HOME}"/.local/bin/telegram/Telegram/Telegram"
    7 TDESKTOP=${HOME}"/.local/share/applications/telegramdesktop.desktop"
     6TDESKTOPPATH=${HOME}"/.local/share/applications"
     7TDESKTOP=${TDESKTOPPATH}"/telegramdesktop.desktop"
    88RS=0
    9 if [ ! -z $TELEGRAM ]
     9if [ ! -x $TELEGRAM ]
    1010then
    1111        zenity --error --title "Telegram" --text "Telegram not found at $TELEGRAM"
     
    1414        $TELEGRAM
    1515        #When finished regenerates the .desktop
     16        [ -a $TDESKTOPPATH] || mkdir $TDESKTOPPATH -p
    1617        echo "[Desktop Entry]
    1718        Encoding=UTF-8
Note: See TracChangeset for help on using the changeset viewer.