diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-11-03 01:23:15 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-11-03 01:23:15 +0900 |
| commit | 24435694a5c5c0832292080a68405a9cb9e960f6 (patch) | |
| tree | 423605c11e642d32d26a4d3c22d0356b19bdd4d5 | |
| parent | 1c168babf2213f2b6c5bc90134a3ea74aca9934f (diff) | |
hst/config: make identifier omitempty
This is an optional field. Serialise it as such.
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rw-r--r-- | cmd/hakurei/print_test.go | 1 | ||||
| -rw-r--r-- | hst/config.go | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/cmd/hakurei/print_test.go b/cmd/hakurei/print_test.go index 5a7d2143..9b1922c2 100644 --- a/cmd/hakurei/print_test.go +++ b/cmd/hakurei/print_test.go @@ -712,7 +712,6 @@ func TestPrintPs(t *testing.T) { "instance": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "pid": 48879, "shim_pid": 51966, - "id": "", "enablements": { "wayland": true, "pulse": true diff --git a/hst/config.go b/hst/config.go index 8a966059..ee31a555 100644 --- a/hst/config.go +++ b/hst/config.go @@ -12,7 +12,7 @@ import ( type Config struct { // Reverse-DNS style configured arbitrary identifier string. // Passed to wayland security-context-v1 and used as part of defaults in dbus session proxy. - ID string `json:"id"` + ID string `json:"id,omitempty"` // System services to make available in the container. Enablements *Enablements `json:"enablements,omitempty"` |
