tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

Animation settings for RDP session only

Open sashaqwert opened this issue 1 year ago • 2 comments

Is your feature request related to a problem?

Currently, in Telegram Desktop it is not possible to set animation settings specific to RDP or console session. There are only global settings for the current OS user.

If you do not disable interface animations, UI lags occur when network bandwidth is low. See https://github.com/telegramdesktop/tdesktop/issues/1184#issuecomment-149317695

I like this animation in console session, but I don't like this in RDP...

Describe the solution you'd like

I suggest replacing one ON/OFF switch with two (console session / RDP session).

For users who have never launched Telegram Desktop in an RDP session, you can still display one ON/OFF switch.

Describe alternatives you've considered

An alternative solution is to completely disable animation (in the console session and RDP at the same time)

Additional context

No response

sashaqwert avatar Feb 18 '24 11:02 sashaqwert

How to detect RDP session?

ilya-fedin avatar Feb 18 '24 16:02 ilya-fedin

https://www.codeproject.com/Questions/186015/How-to-detect-if-a-remote-desktop-session-is-prese maybe this can help

Aokromes avatar Feb 18 '24 16:02 Aokromes

Just wanna toss two ideas out for consideration on this issue. Perhaps settings profiles that can be switched on the fly, either in the UI and or by CLI. This is appealing in that it could be useful for more things, like switching between "day" and "night" as an example. Or various use preferences. Alternatively maybe CLI options that would allow you to disable animations? Then you could just save scripts/shortcuts that would allow you to relaunch quickly and switch between methods you like.

Sja91 avatar Feb 25 '24 08:02 Sja91

Alternatively maybe CLI options that would allow you to disable animations?

This is a good idea when the application is running in an environment that does not have information about the rendering method (VM, sandbox, ...). Also useful for X servers (linux).

Then you could just save scripts/shortcuts that would allow you to relaunch quickly and switch between methods you like.

If Telegram automatically starts when you log into Windows, then in this case, instead of Telegram, you will need to place a script for determining the environment and launching Telegram Desktop with the necessary parameters into startup.

sashaqwert avatar Feb 25 '24 15:02 sashaqwert

I'm highly doubt that all these complications are appreciated, I guess the only realistic way is to ask the system about whether animations are generally appreciated right now with QApplication::isEffectEnabled(Qt::UI_General) and that's all. So now new obscure cli switches and no new UI elements would be needed. Although I guess there's no plan to implement such kind of feature request at all.

ilya-fedin avatar Feb 25 '24 16:02 ilya-fedin