diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-11-17 01:45:10 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-11-17 01:46:01 +0900 |
| commit | 3afca2bd5b58645ad503bc8ef6dfa4f05d2e01e0 (patch) | |
| tree | 4aff66389b0405e5e53fd73c9d434ab839824f74 /cmd | |
| parent | b73a789dfe2b7361d9fce7d6755d14e44f6d9d57 (diff) | |
internal/wayland: expose WAYLAND_VERSION
This might be useful troubleshooting information.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/hakurei/print.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cmd/hakurei/print.go b/cmd/hakurei/print.go index 7e3400a2..7ce51f47 100644 --- a/cmd/hakurei/print.go +++ b/cmd/hakurei/print.go @@ -12,8 +12,6 @@ import ( "time" "hakurei.app/hst" - "hakurei.app/internal/env" - "hakurei.app/internal/info" "hakurei.app/internal/outcome" "hakurei.app/internal/store" "hakurei.app/message" @@ -23,16 +21,14 @@ import ( func printShowSystem(output io.Writer, short, flagJSON bool) { t := newPrinter(output) defer t.MustFlush() - - hi := &hst.Info{Version: info.Version(), User: new(outcome.Hsu).MustID(nil)} - env.CopyPaths().Copy(&hi.Paths, hi.User) + hi := outcome.Info() if flagJSON { encodeJSON(log.Fatal, output, short, hi) return } - t.Printf("Version:\t%s\n", hi.Version) + t.Printf("Version:\t%s (libwayland %s)\n", hi.Version, hi.WaylandVersion) t.Printf("User:\t%d\n", hi.User) t.Printf("TempDir:\t%s\n", hi.TempDir) t.Printf("SharePath:\t%s\n", hi.SharePath) |
