From 24435694a5c5c0832292080a68405a9cb9e960f6 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 3 Nov 2025 01:23:15 +0900 Subject: [PATCH] hst/config: make identifier omitempty This is an optional field. Serialise it as such. Signed-off-by: Ophestra --- cmd/hakurei/print_test.go | 1 - hst/config.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/hakurei/print_test.go b/cmd/hakurei/print_test.go index 5a7d214..9b1922c 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 8a96605..ee31a55 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"`