fix: Set correct window class for X11 and Wayland (#2758)

This commit is contained in:
Alexey Arutyunov
2024-12-23 01:10:57 +01:00
committed by GitHub
parent 0179dfd311
commit 7e1aea21db
2 changed files with 7 additions and 0 deletions

View File

@ -131,6 +131,9 @@ if (config.get('options.disableHardwareAcceleration')) {
}
if (is.linux()) {
// Overrides WM_CLASS for X11 to correspond to icon filename
app.setName("com.github.th_ch.youtube_music");
// Workaround for issue #2248
if (
process.env.XDG_SESSION_TYPE === 'wayland' ||