Skip to content

Commit

Permalink
Add SingleMainWindow support
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Oct 17, 2024
1 parent 95dc71b commit dc66bcb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
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.
"""
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

0 comments on commit dc66bcb

Please sign in to comment.