Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've been using Dopamine on linux for a while now, and had no major issues. However, Dopamine by default runs on x11. Switching this to wayland is rather easy: adding the flags
--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true, which are intented for all electron apps.Dopamine under wayland seems to work better overall with some minor functionality being more consistent with other similar apps.
However, while testing, I happened upon a bug(?) of sorts which had not happened on x11. Wayland uses the desktop file to provide icons for applications, and tries to search for a .desktop file named


Dopaminewhereas the desktop file name for Dopamine isdopamine.desktop. This causes the icons to not be displayed and default to the generic wayland icons as seen here:The fix for this bug is changing the name wayland looks for like this:

(Changing the
Desktop file namefromDopaminetodopamine)However, through some research I was able to find a better fix for this:
flathub/com.vscodium.codium-insiders@9f6f7b0
Setting the
desktopNameseems to be the preferred fix for this as it changes the default value ofDesktop file name, fixing the issue at it's root.Here are the screenshots after applying this fix: