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 2 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
5 changes: 5 additions & 0 deletions menuinst/_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ 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
"""
Hint to avoid offering a UI to launch another window of the app.
This is useful for removing the 'New Window' option in the app's context menu.
larsoner marked this conversation as resolved.
Show resolved Hide resolved
"""
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
Loading