Skip to content

Conversation

@ern775
Copy link
Contributor

@ern775 ern775 commented Nov 15, 2025

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 Dopamine whereas the desktop file name for Dopamine is dopamine.desktop. This causes the icons to not be displayed and default to the generic wayland icons as seen here:
Screenshot_20251116_002525
Screenshot_20251116_002319

The fix for this bug is changing the name wayland looks for like this:
(Changing the Desktop file name from Dopamine to dopamine)
Screenshot_20251115_223839

However, through some research I was able to find a better fix for this:
flathub/com.vscodium.codium-insiders@9f6f7b0
Setting the desktopName seems to be the preferred fix for this as it changes the default value of Desktop file name, fixing the issue at it's root.


Here are the screenshots after applying this fix:
Screenshot_20251116_003312
Screenshot_20251116_003428

@ern775
Copy link
Contributor Author

ern775 commented Nov 15, 2025

This was a rather lenghty explanation for such a small change, but I wanted to explain the full reasoning behind it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants