Tdesktop: [Feature request] Open main window in one click (linux)

Created on 11 Aug 2015  Â·  30Comments  Â·  Source: telegramdesktop/tdesktop

Please, change the reaction to the clicks on the tray icon:

  • left click opens the main window
  • right click opens the menu.

Now both left and right clicks open the menu.

Thank you.

enhancement linux

Most helpful comment

A workaround with installed libappindicator. Try to run Telegram with overridden environment variables:

DESKTOP_SESSION=Other XDG_CURRENT_DESKTOP=Other Telegram

More info is in the code:

Works with Xfce 4.12 on Debian 9. Telegram Desktop 1.2.17.

All 30 comments

I'm on linux (KDE 4) and primary button click does not bring up the menu at all.

Now both left and right clicks open the menu.

Yea, it's happening on Gnome 3.

it is on XFCE too.

So I'd also be happy to see this, I am runnning Ubuntu 15.04.
Most Applications just open and focus the main window, when clicking/double clicking the tray icon. I think that's the way it should work.

its been an request for really long time, let try to patch the code

I've since switched to XFCE (Fedora 23) and main button click opens the window, no menu.

Do all of you use right-handed mouse?

Yes here

Hmm, I kinda hoped it was left-handed mouse confusing the tray icon, but apparently not.

Any news on this?

It is working in version 0.10.19 (on MATE).
I think this issue may be closed.

Its still not working on GNOME Shell 3.22.1 (Telegram 0.10.19), so please DO NOT close this.

Also on XFCE when clicking on a tray icon first time the menu has somewhat limited size and therefore a scroll and after that it just has a bigger size which it should

@EgZvor Seems like it's separate issue.

I found by removing libappindicator-gtk2/3 resolved the issue.

@alleyoopster At least now you can open the window with one click. Thank you :)
Hiding the window by clicking again does not work unfortunately, but its a start :+1:

The libraries libappindicator-gtk* are absent in my system. The issue still is under XFCE4 (left click opens Telegram menu, right click opens the xfce panel menu).

The name depends on the distro. I'm using Arch Linux. It could be libappindicator* on Debian based.

I'm using Linux Mint 18 (the clone of Ubuntu 16).

Ubuntu is based on Debian so the package name should still be the same in Mint. It maybe a little trickier to remove with dependencies but Mint Forums are very helpful.

Unfortunately there are quite some apps with a libappindicator dependency (ring, blueman...)

Please try 1.0.29

Version 1.0.29 still does not work like it have to on XFCE (Mint 18). Left click opens Telegram menu, right click opens xfce panel menu.

Works fine on Gnome Shell now! Thank you!

A workaround with installed libappindicator. Try to run Telegram with overridden environment variables:

DESKTOP_SESSION=Other XDG_CURRENT_DESKTOP=Other Telegram

More info is in the code:

Works with Xfce 4.12 on Debian 9. Telegram Desktop 1.2.17.

A workaround with installed libappindicator. Try to run Telegram with overridden environment variables:

DESKTOP_SESSION=Other XDG_CURRENT_DESKTOP=Other Telegram

More info is in the code:

Works with Xfce 4.12 on Debian 9. Telegram Desktop 1.2.17.

Just small edit that works in Manjaro XFCE4
DESKTOP_SESSION=Other XDG_CURRENT_DESKTOP=Other telegram-desktop

Facing the same issues on Zorin 15 (Based on Ubuntu 18.04.2, Gnome shell 3.30).
Left click on the symbol in taskbar opens the same context menu as a right click does.

I have a feeling it might be the desktop environments / frameworks messing with things... but who knows. I'm on MATE (also GTK 3 like Gnome Shell) and none of my chat applications do anything for LMB click now (Slack, Discord, Telegram, you name it — Slack used to have the LMB = menu problem a few months ago).

Facing the same issues on Zorin 15 (Based on Ubuntu 18.04.2, Gnome shell 3.30).
Left click on the symbol in taskbar opens the same context menu as a right click does.

For me it works (Antergos, Gnome Shell 3.32.1)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

qwitriy picture qwitriy  Â·  3Comments

FunctionalHacker picture FunctionalHacker  Â·  3Comments

hosseinab picture hosseinab  Â·  3Comments

JhonSane picture JhonSane  Â·  3Comments

Mindstormer619 picture Mindstormer619  Â·  3Comments