mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 20:52:06 +00:00
fix: Set correct window class for X11 and Wayland (#2758)
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "youtube-music",
|
"name": "youtube-music",
|
||||||
|
"desktopName": "com.github.th_ch.youtube_music",
|
||||||
"productName": "YouTube Music",
|
"productName": "YouTube Music",
|
||||||
"version": "3.6.2",
|
"version": "3.6.2",
|
||||||
"description": "YouTube Music Desktop App - including custom plugins",
|
"description": "YouTube Music Desktop App - including custom plugins",
|
||||||
@ -71,6 +72,9 @@
|
|||||||
"linux": {
|
"linux": {
|
||||||
"icon": "assets/generated/icons/png",
|
"icon": "assets/generated/icons/png",
|
||||||
"category": "AudioVideo",
|
"category": "AudioVideo",
|
||||||
|
"desktop": {
|
||||||
|
"StartupWMClass": "com.github.th_ch.youtube_music"
|
||||||
|
},
|
||||||
"target": [
|
"target": [
|
||||||
{
|
{
|
||||||
"target": "AppImage",
|
"target": "AppImage",
|
||||||
|
|||||||
@ -131,6 +131,9 @@ if (config.get('options.disableHardwareAcceleration')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (is.linux()) {
|
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
|
// Workaround for issue #2248
|
||||||
if (
|
if (
|
||||||
process.env.XDG_SESSION_TYPE === 'wayland' ||
|
process.env.XDG_SESSION_TYPE === 'wayland' ||
|
||||||
|
|||||||
Reference in New Issue
Block a user