aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-01-22 11:54:16 +0900
committerOphestra <cat@gensokyo.uk>2025-01-22 11:54:16 +0900
commit23e1152baa345d36003c34086f9599df00ccd1a7 (patch)
treebba79affc479bf64b4486fbbba1c475e37a4c0c0 /internal/app
parent8c51012ef5df1b421a21ae5117fcf66460087fd5 (diff)
app/share: clean BaseError message
This removes trailing '\n' in the PulseAudio warning. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app')
-rw-r--r--internal/app/share.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/app/share.go b/internal/app/share.go
index f2fa7600..6e72c6f1 100644
--- a/internal/app/share.go
+++ b/internal/app/share.go
@@ -5,6 +5,7 @@ import (
"fmt"
"io/fs"
"path"
+ "strings"
"git.gensokyo.uk/security/fortify/acl"
"git.gensokyo.uk/security/fortify/dbus"
@@ -240,7 +241,7 @@ func (seal *appSeal) setupShares(bus [2]*dbus.Config, os linux.System) error {
// publish current user's pulse cookie for target user
if src, err := discoverPulseCookie(os); err != nil {
// not fatal
- fmsg.VPrintln(err.(*fmsg.BaseError).Message())
+ fmsg.VPrintln(strings.TrimSpace(err.(*fmsg.BaseError).Message()))
} else {
dst := path.Join(seal.share, "pulse-cookie")
innerDst := fst.Tmp + "/pulse-cookie"