I'd like to have the possibility to start telegram minimized in the tray icon
This feature is not present on linux version.
I have corrected the title
Yes ! That would be great in Linux. In fact, autostart
is not even necessary
Maybe you can just simply add some option like ./Telegram --no-startup-window
in order to load the app only in background (as we already have a app indicator).
Then, we would add ourselves the command into Startup applications
+1. This is currently the major reason why I'm not adding Telegram to autostart.
@EmptyStackExn v7.10 comes with -startintray cmd parameter
I have it on autostart, but the window opening is a little annoying. It's bearable, though.
//Since the mobile version of GitHub does not seem to allow comment editing, I'll add another one.
Many desktop environments have an autostart functionality. I know GNOME has it and you might add a feature to enable it from the tg settings.
Try "-startintray" commandline option in the 0.7.10 version, maybe it will work fine for you. But the window yet is only minimized, not hidden. Maybe I should hide it if the libappindicator could be loaded.
@auchri @telegramdesktop Thank you ! That works great for me. Maybe you should add the option -h
in order to list and gather all possible options for new users who would not be aware this feature yet :+1:
Good idea. -h
or --help
sounds excellent.
Doesn't work for me (Ubuntu 14.10, GNOME 3.12). With -startintray, the main window is still shown, but fails to properly draw its contents and is filled with garbage.
+1 and I have same @lucidfox issue (Ubuntu 14.04, Gnome 3.12)
"Telegram -startintray" works for me in Xubuntu 15.04 . The application gets started and only the indicator is shown, no hidden window.
With my Ubuntu 14.04 (Unity) I've a 'strange' behavior: Telegram starts with the option "-startintray", but I have to click sometimes on the tray icon to see my chats. First time I've to click on 'Open Telegram', after 'Minimize to tray' and then 'Open Telegram' again!
2015-03-03 15:30 GMT+07:00 brunoJeeAo [email protected]:
With my Ubuntu 14.04 (Unity) I've a 'strange' behavior: Telegram starts
with the option "-startintray", but I have to click sometimes on the tray
icon to see my chats. First time I've to click on 'Open Telegram', after
'Minimize to tray' and then 'Open Telegram' again!—
Reply to this email directly or view it on GitHub
https://github.com/telegramdesktop/tdesktop/issues/407#issuecomment-76905488
.
Option -startintray doesn't work as expected. When Telegram started with this option in Ubuntu 15.04, I can't open Telegram windows at all. No matter how many times I click tray icon and select "Open Telegram", nothing happens. I have to close Telegram and start it again regular way.
PS: I tried https://github.com/telegramdesktop/tdesktop/issues/407#issuecomment-76905488, it works for me too. Indeed, a sequence of "Open Telegram --> Minimize to tray --> Open Telegram" shows the window finally. I hope you can fix this strange behavior.
I get the same as @brunoJeeAo 's comment. That's better than it starting up on the screen though
@telegramdesktop Thanks for the hint.
I wonder why you don't want to add this option in Telegram settings GUI?
Appears to be working in cinnamon.
Just my to cents: The command should be either
-t
--startintray
also, as somebody mentioned: -h and/or --help should not start the program but show available command line options.
PlusMinus0 the '--startintray' and '-t' options are incorrect, Telegram starts opened however (i.e. same thing if you type '--goofy'.)
I know that they are incorrect, hence "should be". The emphasis is on the number of dashes. A single dash for a single character, two dashes for a longer parameter.
https://www.gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
Exactly I was looking for. Thank you very much.
It's still buggy https://github.com/telegramdesktop/tdesktop/issues/422
still happens...
I can confirm that -startintray
still opens the window on Ubuntu 16.10.
@lucidfox I found this issue to that -startintray works on QT desktop and not GTK+ desktops, I reproduced the issue on Gnome 3. this is because it doesn't have a tray. does it make sense? or should telegram minimize on -startintray?
It's not working for me. Gnome 3.
It's working for me in a Gnome 3 session - but using lightdm
not gdm
(don't have gdm
installed so haven't tested).
Works fine on my Debian 9 machine.
I have Gnome 3.22.2, with GDM and Topicons shell extension.
I just copied Telegram's .desktop
file to ~/.config/autostart
:
[Desktop Entry]
Version=1.0
Name=Telegram Desktop
Comment=Official desktop version of Telegram messaging app
TryExec=/opt/Telegram/Telegram
Exec=/opt/Telegram/Telegram -startintray -- %u
Icon=telegram
Terminal=false
StartupWMClass=TelegramDesktop
Type=Application
Categories=Network;InstantMessaging;Qt;
MimeType=x-scheme-handler/tg;
X-Desktop-File-Install-Version=0.23
Most helpful comment
Works fine on my Debian 9 machine.
I have Gnome 3.22.2, with GDM and Topicons shell extension.
I just copied Telegram's
.desktop
file to~/.config/autostart
: