config: add sandbox client criteria
This commit is contained in:
parent
fd2163d658
commit
9bf79bf23c
20 changed files with 465 additions and 46 deletions
|
|
@ -531,6 +531,34 @@
|
|||
"exactly": {
|
||||
"description": "Matches if a specific number of contained criteria match.\n\n- Example:\n\n ```toml\n # Matches any client that is either steam or sandboxed by flatpak but not both.\n [[clients]]\n match.exactly.num = 1\n match.exactly.list = [\n { sandbox-engine = \"org.flatpak\" },\n { sandbox-app-id = \"com.valvesoftware.Steam\" },\n ]\n ```\n",
|
||||
"$ref": "#/$defs/ClientMatchExactly"
|
||||
},
|
||||
"sandboxed": {
|
||||
"type": "boolean",
|
||||
"description": "Matches if the client is/isn't sandboxed.\n\n- Example:\n\n ```toml\n [[clients]]\n match.sandboxed = true\n ```\n"
|
||||
},
|
||||
"sandbox-engine": {
|
||||
"type": "string",
|
||||
"description": "Matches the engine name of the client's sandbox verbatim.\n\n- Example:\n\n ```toml\n [[clients]]\n match.sandbox-engine = \"org.flatpak\"\n ```\n"
|
||||
},
|
||||
"sandbox-engine-regex": {
|
||||
"type": "string",
|
||||
"description": "Matches the engine name of the client's sandbox with a regular expression.\n\n- Example:\n\n ```toml\n [[clients]]\n match.sandbox-engine = \"flatpak\"\n ```\n"
|
||||
},
|
||||
"sandbox-app-id": {
|
||||
"type": "string",
|
||||
"description": "Matches the app id of the client's sandbox verbatim.\n\n- Example:\n\n ```toml\n [[clients]]\n match.sandbox-app-id = \"com.spotify.Client\"\n ```\n"
|
||||
},
|
||||
"sandbox-app-id-regex": {
|
||||
"type": "string",
|
||||
"description": "Matches the app id of the client's sandbox with a regular expression.\n\n- Example:\n\n ```toml\n [[clients]]\n match.sandbox-app-id-regex = \"(?i)spotify\"\n ```\n"
|
||||
},
|
||||
"sandbox-instance-id": {
|
||||
"type": "string",
|
||||
"description": "Matches the instance id of the client's sandbox verbatim.\n"
|
||||
},
|
||||
"sandbox-instance-id-regex": {
|
||||
"type": "string",
|
||||
"description": "Matches the instance id of the client's sandbox with a regular expression.\n"
|
||||
}
|
||||
},
|
||||
"required": []
|
||||
|
|
|
|||
|
|
@ -794,6 +794,83 @@ The table has the following fields:
|
|||
|
||||
The value of this field should be a [ClientMatchExactly](#types-ClientMatchExactly).
|
||||
|
||||
- `sandboxed` (optional):
|
||||
|
||||
Matches if the client is/isn't sandboxed.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
[[clients]]
|
||||
match.sandboxed = true
|
||||
```
|
||||
|
||||
The value of this field should be a boolean.
|
||||
|
||||
- `sandbox-engine` (optional):
|
||||
|
||||
Matches the engine name of the client's sandbox verbatim.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
[[clients]]
|
||||
match.sandbox-engine = "org.flatpak"
|
||||
```
|
||||
|
||||
The value of this field should be a string.
|
||||
|
||||
- `sandbox-engine-regex` (optional):
|
||||
|
||||
Matches the engine name of the client's sandbox with a regular expression.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
[[clients]]
|
||||
match.sandbox-engine = "flatpak"
|
||||
```
|
||||
|
||||
The value of this field should be a string.
|
||||
|
||||
- `sandbox-app-id` (optional):
|
||||
|
||||
Matches the app id of the client's sandbox verbatim.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
[[clients]]
|
||||
match.sandbox-app-id = "com.spotify.Client"
|
||||
```
|
||||
|
||||
The value of this field should be a string.
|
||||
|
||||
- `sandbox-app-id-regex` (optional):
|
||||
|
||||
Matches the app id of the client's sandbox with a regular expression.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
[[clients]]
|
||||
match.sandbox-app-id-regex = "(?i)spotify"
|
||||
```
|
||||
|
||||
The value of this field should be a string.
|
||||
|
||||
- `sandbox-instance-id` (optional):
|
||||
|
||||
Matches the instance id of the client's sandbox verbatim.
|
||||
|
||||
The value of this field should be a string.
|
||||
|
||||
- `sandbox-instance-id-regex` (optional):
|
||||
|
||||
Matches the instance id of the client's sandbox with a regular expression.
|
||||
|
||||
The value of this field should be a string.
|
||||
|
||||
|
||||
<a name="types-ClientMatchExactly"></a>
|
||||
### `ClientMatchExactly`
|
||||
|
|
|
|||
|
|
@ -3167,6 +3167,76 @@ ClientMatch:
|
|||
{ sandbox-app-id = "com.valvesoftware.Steam" },
|
||||
]
|
||||
```
|
||||
sandboxed:
|
||||
kind: boolean
|
||||
required: false
|
||||
description: |
|
||||
Matches if the client is/isn't sandboxed.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
[[clients]]
|
||||
match.sandboxed = true
|
||||
```
|
||||
sandbox-engine:
|
||||
kind: string
|
||||
required: false
|
||||
description: |
|
||||
Matches the engine name of the client's sandbox verbatim.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
[[clients]]
|
||||
match.sandbox-engine = "org.flatpak"
|
||||
```
|
||||
sandbox-engine-regex:
|
||||
kind: string
|
||||
required: false
|
||||
description: |
|
||||
Matches the engine name of the client's sandbox with a regular expression.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
[[clients]]
|
||||
match.sandbox-engine = "flatpak"
|
||||
```
|
||||
sandbox-app-id:
|
||||
kind: string
|
||||
required: false
|
||||
description: |
|
||||
Matches the app id of the client's sandbox verbatim.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
[[clients]]
|
||||
match.sandbox-app-id = "com.spotify.Client"
|
||||
```
|
||||
sandbox-app-id-regex:
|
||||
kind: string
|
||||
required: false
|
||||
description: |
|
||||
Matches the app id of the client's sandbox with a regular expression.
|
||||
|
||||
- Example:
|
||||
|
||||
```toml
|
||||
[[clients]]
|
||||
match.sandbox-app-id-regex = "(?i)spotify"
|
||||
```
|
||||
sandbox-instance-id:
|
||||
kind: string
|
||||
required: false
|
||||
description: |
|
||||
Matches the instance id of the client's sandbox verbatim.
|
||||
sandbox-instance-id-regex:
|
||||
kind: string
|
||||
required: false
|
||||
description: |
|
||||
Matches the instance id of the client's sandbox with a regular expression.
|
||||
|
||||
|
||||
ClientMatchExactly:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue