Ajaxy / telegram-tt

Telegram Web A, GPL v3
https://web.telegram.org/a
GNU General Public License v3.0
2.39k stars 520 forks source link

Allow set custom app name via env #293

Open ErnyTech opened 1 year ago

ErnyTech commented 1 year ago

This is especially useful because of this https://github.com/electron/electron/issues/33155

Ajaxy commented 1 year ago

Can you elaborate, what is the purpose? Also, please make sure to comply with the linter rules.

ErnyTech commented 1 year ago

Electron sets WM_CLASS based on app name, currently equivalent to "Telegram A". Unfortunately on Linux to get the application icon on the task manager it is necessary that the WM_CLASS must correspond to the name of the icon, to be able to optimally package the application on a Linux distro it is necessary to have a WM_CLASS without spaces. This patch is useful for doing this without changing the code