Include some reference XDG files

Include a .desktop file (for app menu in xdg-complaint desktops), and
tg.protocol (for having xdg-complaint apps pick up the tg: protocol).

Signed-off-by: Hugo Osvaldo Barrera <hugo@barrera.io> (github: hobarrera)
This commit is contained in:
Hugo Osvaldo Barrera 2016-02-18 21:28:38 -03:00
parent 6a299e32d3
commit 3a919628b3
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,12 @@
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=Telegram Desktop
Comment=Official desktop version of Telegram messaging app
Exec=/usr/bin/telegram-desktop -- %u
Icon=telegram-desktop
Terminal=false
StartupWMClass=Telegram
Type=Application
Categories=Network;
MimeType=application/x-xdg-protocol-tg;x-scheme-handler/tg;

11
lib/xdg/tg.protocol Normal file
View File

@ -0,0 +1,11 @@
[Protocol]
exec=/usr/bin/telegram-desktop -- %u
protocol=tg
input=none
output=none
helper=true
listing=false
reading=false
writing=false
makedir=false
deleting=false