Ajaxy / telegram-tt

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

Allow set custom app name via env #293

Open ErnyTech opened 8 months ago

ErnyTech commented 8 months ago

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

Ajaxy commented 8 months ago

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

ErnyTech commented 8 months 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