Skip to content
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

Add SingleMainWindow support for Linux items #264

Open
2 tasks done
larsoner opened this issue Oct 17, 2024 · 0 comments · May be fixed by #265
Open
2 tasks done

Add SingleMainWindow support for Linux items #264

larsoner opened this issue Oct 17, 2024 · 0 comments · May be fixed by #265
Labels
type::feature request for a new feature or capability

Comments

@larsoner
Copy link
Contributor

Checklist

  • I added a descriptive title
  • I searched open requests and couldn't find a duplicate

What is the idea?

To set the icon of Qt applications properly on latest Ubuntu I need to create the following .desktop file:

[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

This isn't meant to be a launcher, just create an association between the given Qt window's StartupWMClass and an Icon. There doesn't seem to be any runtime Qt method to get the icon to change, so without this .desktop file we're stuck with the default gear icon (ignore the Signal icon above it):

Image

All the options are there except the SingleMainWindow one, which is helpful because it takes this default behavior of having a "New Window" prompt:

Image

And allows it to be removed, which is what I want:

Image

Why is this needed?

Anyone who wants to remove the "New Window" option on latest Ubuntu will benefit from this feature.

What should happen?

Additional Context

N/A

@larsoner larsoner added the type::feature request for a new feature or capability label Oct 17, 2024
@larsoner larsoner linked a pull request Oct 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::feature request for a new feature or capability
Projects
Status: 🆕 New
Development

Successfully merging a pull request may close this issue.

1 participant