Tdesktop: MacOS: Support minimised start during boot

Created on 21 Jul 2017  ·  11Comments  ·  Source: telegramdesktop/tdesktop

Steps to reproduce

As no option is available in Telegram Desktop itself, the only way to make Telegram start after booting is to instruct MacOS in the Users & Groups preferences pane to start Telegram. Checking the option to hide Telegram Desktop (start minimised) after launching is ineffective.

Expected behaviour

Telegram Desktop should open minimised after booting, just like the MacOS-only version of the program.

Actual behaviour

Telegram Desktop shows its window every time after booting.

Configuration

Operating system:
MacOS 10.12
Version of Telegram Desktop:
1.1.10

auto closed macOS

Most helpful comment

Функция так и не была реализована, хотя очень востребована(

All 11 comments

@RobynScore Good point. If someone knows how to determine inside the app if it was asked to be launched minimized by this service — he is welcome to share.

Maybe processType == "appe"?
Sadly, that code won't work on macOS 10.10+, and you'll have to use NSRunningApplication somehow.

http://mirror.informatimago.com/next/developer.apple.com/documentation/Carbon/Reference/Process_Manager/prmref_main/data_type_3.html

Actually, this code works in our app. Or

https://github.com/adobe/chromium/blob/master/base/mac/mac_util.mm
WasLaunchedAsLoginOrResumeItem

@kleuter indeed. I've noticed "deprecated" in docs, but haven't really checked it.

Quick check (and note): v1.1.23 still has no support

1380 generic request?

it's about supporting macOS specific system setting, and not about TDesktop's own setting

maybe this could be of any help
https://github.com/keybase/client/tree/master/osx
https://github.com/keybase/client/search?utf8=%E2%9C%93&q=openAtLogin&type=

it just loads tray icon at login with no window or dock icon

Hey there!

We're automatically closing this issue since there was no activity in this issue since 375 days ago. We therefore assume that the user has lost interest or resolved the problem on their own. Closed issues that remain inactive for a long period may get automatically locked.

Don't worry though; if this is in error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

(Please note that this is an automated comment.)

Функция так и не была реализована, хотя очень востребована(

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  ·  3Comments

ArmeF97 picture ArmeF97  ·  3Comments

abhyrz picture abhyrz  ·  3Comments

FunctionalHacker picture FunctionalHacker  ·  3Comments

Mindstormer619 picture Mindstormer619  ·  3Comments