mne-python icon indicating copy to clipboard operation
mne-python copied to clipboard

MNE-Python application icon broken in Ubuntu 24.04

Open larsoner opened this issue 1 year ago • 5 comments

... I think due to the use of Gnome3 newer Ubuntu seems to by default now require a .desktop file to use something other than this in the dock:

image

I tried a bunch of Qt stuff and none of it worked. At some point I stumbled upon a post that mentioned .desktop with StartupWMClass could fix it and indeed this seems to work:

~/.local/share/applications/mne-python.desktop
[Desktop Entry]
Type=Application
Version=1.5
Name=MNE-Python
StartupWMClass=MNE-Python
Icon=/home/larsoner/python/mne-python/mne/icons/mne_default_icon.png
SingleMainWindow=true
NoDisplay=true

image

@hoechenberger our installers currently add files like mne-python-180_prompt-mne.desktop but I'm not sure if it's possible to have them create a separate linux-only file, do you?

Either way, we could consider adding a note about this to our install docs somewhere as well.

larsoner avatar Oct 16 '24 20:10 larsoner