Skip to content

MNE-Python application icon broken in Ubuntu 24.04 #12899

@larsoner

Description

@larsoner

... 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions