flecs icon indicating copy to clipboard operation
flecs copied to clipboard

[Bug]: The hotkey setting window for Electron appears on the screen every time you launch the YouTube-Music app on GNOME 48

Open zefkerr opened this issue 8 months ago • 6 comments

Preflight Checklist

  • [x] I use the latest version of YouTube Music (Application).
  • [x] I have searched the issue tracker for a bug report that matches the one I want to file, without success.
  • [x] I understand that th-ch/youtube-music has NO affiliation with Google or YouTube

YouTube Music (Application) Version

https://aur.archlinux.org/packages/youtube-music

Checklists

What operating system are you using?

Other Linux

Operating System Version

Arch Linux

What CPU architecture are you using?

x64

Last Known Working YouTube Music (Application) version

3.7.5

Reproduction steps

Just run the app.

Expected Behavior

As 3.7.5 just run the app and use it. The setting window have not appeared.

Actual Behavior

The hotkey setting window for Electron appears on the screen every time you launch the YouTube-Music app on Arch Linux with GNOME 48.

Enabled plugins

config.json

Additional Information

Image

Thank you for my favorite app!

zefkerr avatar Apr 19 '25 21:04 zefkerr

GNOME 48 recently came out, are you saying that version 3.7.5 doesn't have this issue on GNOME 48? just making sure that this is not a GNOME error, but an actual issue with our code/configuration.

ArjixWasTaken avatar Apr 19 '25 21:04 ArjixWasTaken

GNOME 48 recently came out, are you saying that version 3.7.5 doesn't have this issue on GNOME 48? just making sure that this is not a GNOME error, but an actual issue with our code/configuration.

@ArjixWasTaken I just tested it with 3.7.5 and have no this issue here.

zefkerr avatar Apr 19 '25 21:04 zefkerr

This is a Chromium bug, in which the fix is not released yet (if I'm not mistaken). To mitigate this for now, you can add the flag --disable-features=GlobalShortcutsPortal in your .desktop file.

For some reason, I don't experience this on YouTube Music, only on Brave.

franz-dc avatar Apr 20 '25 19:04 franz-dc

Since it is a Chromium bug, even if the fix gets released, it will take even longer for electron to update to that chromium version 😔

ArjixWasTaken avatar Apr 20 '25 20:04 ArjixWasTaken

This is a Chromium bug, in which the fix is not released yet (if I'm not mistaken). To mitigate this for now, you can add the flag --disable-features=GlobalShortcutsPortal in your .desktop file.

For some reason, I don't experience this on YouTube Music, only on Brave.

@franz-dc Hi! Thank you for your advice which has helped me. But here is my advice to thank you. Putting Electron applications settings flags in *.desktop is not the correct way. Instead, create a file ~/.config/youtube-music-flags.conf, where to place your settings flags will be the most correct way.

zefkerr avatar Apr 20 '25 22:04 zefkerr

This is a Chromium bug, in which the fix is not released yet (if I'm not mistaken). To mitigate this for now, you can add the flag --disable-features=GlobalShortcutsPortal in your .desktop file.

For some reason, I don't experience this on YouTube Music, only on Brave.

I tried again and found that --disable-features=GlobalShortcutsPortal still doesn't help me solve the problem. I mistakenly concluded that it did when I ran the application from the terminal using this flag and did not see the problem. I posted about it here immediately afterwards. But after that I ran the application from the terminal again, but without any flags at all, but this time I didn't find any problems either. The problem only appears anyway if I run the application not from the terminal, but by clicking the app icon on GNOME's dash panel.

zefkerr avatar Apr 20 '25 23:04 zefkerr