source: zero-lliurex-installers/trunk/fuentes/zero-lliurex-telegram.install/usr/bin/lliurex-telegram.sh @ 5679

Last change on this file since 5679 was 5679, checked in by Juanma, 2 years ago

renamed telegramdesktop to zero-lliurex-telegram.desktop

  • Property svn:executable set to *
File size: 968 bytes
Line 
1#!/bin/bash
2#Wrapper for telegram
3#Adds info in the user's telegram.desktop
4####
5TELEGRAM=${HOME}"/.local/bin/telegram/Telegram/Telegram"
6TDESKTOPPATH=${HOME}"/.local/share/applications"
7TDESKTOP=${TDESKTOPPATH}"/zero-lliurex-telegram.desktop"
8RS=0
9if [ ! -x $TELEGRAM ]
10then
11        zenity --error --title "Telegram" --text "Telegram not found at $TELEGRAM"
12        RS=1
13else
14        $TELEGRAM
15        #When finished regenerates the .desktop
16        [ -a $TDESKTOPPATH ] || mkdir $TDESKTOPPATH -p
17        echo "[Desktop Entry]
18Encoding=UTF-8
19Version=1.0
20Name=Telegram Desktop
21Comment=Official desktop version of Telegram messaging app
22Comment[es]=Versión oficial de Telegram Desktop
23Comment[ca]=Versió oficial del Telegram Desktop
24Comment[ca_ES@valencia]=Versió oficial del Telegram Desktop
25Exec=/usr/bin/lliurex-telegram.sh
26Icon=telegram
27Terminal=false
28StartupWMClass=Telegram
29Type=Application
30Categories=Network;
31MimeType=x-scheme-handler/tg;
32X-Desktop-File-Install-Version=0.22
33">$TDESKTOP
34fi
35exit $RS
Note: See TracBrowser for help on using the repository browser.