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 #265

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions menuinst/_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ class Linux(BasePlatformSpecific):
"""
PrefersNonDefaultGPU: Optional[bool] = None
"Hint that the app prefers to be run on a more powerful discrete GPU if available."
SingleMainWindow: Optional[bool] = None
"""
Do not show the 'New Window' option in the app's context menu.
"""
StartupNotify: Optional[bool] = None
"""
Advanced. See `Startup Notification spec
Expand Down
1 change: 1 addition & 0 deletions menuinst/data/menuinst.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"NotShowIn": null,
"OnlyShowIn": null,
"PrefersNonDefaultGPU": null,
"SingleMainWindow": null,
"StartupNotify": null,
"StartupWMClass": null,
"TryExec": null,
Expand Down
4 changes: 4 additions & 0 deletions menuinst/data/menuinst.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@
"title": "Prefersnondefaultgpu",
"type": "boolean"
},
"SingleMainWindow": {
"title": "Singlemainwindow",
"type": "boolean"
},
"StartupNotify": {
"title": "Startupnotify",
"type": "boolean"
Expand Down
19 changes: 19 additions & 0 deletions news/265-add-singlemainwindow-support
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* Add support for `SingleMainWindow` in the Linux platform-specific options to allow disabling the `New Window` option in the app's context menu.
larsoner marked this conversation as resolved.
Show resolved Hide resolved

### Bug fixes

* <news item>

### Deprecations

* <news item>

### Docs

* <news item>

### Other

* <news item>
Loading