-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wayland incompatible name of .desktop
file, should be GitHub Desktop.desktop
#1176
Comments
Works for me with the existing name. |
Probably because you run it with XWayland?
Yes. To make sure my electron apps run native under Wayland.
|
I have it set to |
Sorry, I think there is a misunderstanding. Do you see the yellow "W" icon (which is not "correct") or do you see the GitHub Desktop icon (which you should). |
Sorry, there most definitely is a misunderstanding. I understood your issue as you using the icon as an indicator of whether the application is using Wayland or not, which would be understandable, given the Wayland people took quite some time to come up with a protocol to set icons. Can you link documentation, where the name of the |
There are some interesting comments in the Electron code:
What you can do also, run:
and click on the app windows, you should see Also Gnome recommends that the desktop file name should match the app_id (or WM_CLASS in X), please see the gnome wiki: https://wiki.gnome.org/Projects/GnomeShell/ApplicationBased#The_Application_ID:
JetBrains is working on native Wayland support for IntelliJ (=for Java basically) and they hit the same problem:
For the long term: Recently the Wayland "XDG toplevel icon" showed up, which maybe make this "hacks" unnecessary: |
The problem
You have the same problem like Signal and other Electron applications have when running under Wayland. The app icon is incorrect. See the attached screenshot of Signal, but it applies to GitHub Desktop as well.
Currently, Wayland expects the desktop file name to be the same as the "app id". You can find out that id by running
WAYLAND_DEBUG=1 github-desktop
, you will see that it isGitHub Desktop
.So if you under Wayland, just test this by renaming the desktop file to
GitHub Desktop.desktop
and start the app again. You will see that now the icon is correct.I wrote a lengthy comment in the signal issue tracker too already with more details, take a look, there are also other links which provide even more information (the ones that point to https://aur.archlinux.org/ ...)
Caution
Be aware that changing the desktop file name might break the MIME Type handling (in your case when you authorize users in the browser on GitHub and then expect GitHub Desktop to take over from there). Not sure though, but you should test that.
Release version
3.4.8 Linux RC1
Operating system
Arch Linux with KDE Plasma 6.2 under Wayland
Steps to reproduce the behavior
No response
Log files
No response
Screenshots
From Signal, but also applies to GitHub Desktop:
Additional context
No response
The text was updated successfully, but these errors were encountered: