diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-19 00:41:51 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-19 00:41:51 +0900 |
| commit | 9a10eeab903705a3a033d36bfdc583ccd1bf586e (patch) | |
| tree | e2f7571fc96f3edd06268d5a4d874146789676e7 /internal/app/share.go | |
| parent | d1f83f40d6eb3458bb01d39cf6177d5e6285b27f (diff) | |
app/seal: embed enablements
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/share.go')
| -rw-r--r-- | internal/app/share.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/app/share.go b/internal/app/share.go index 4fd77466..7252add2 100644 --- a/internal/app/share.go +++ b/internal/app/share.go @@ -140,7 +140,7 @@ func (seal *appSeal) setupShares(bus [2]*dbus.Config, os sys.State) error { } // set up wayland - if seal.et.Has(system.EWayland) { + if seal.Has(system.EWayland) { var socketPath string if name, ok := os.LookupEnv(wl.WaylandDisplay); !ok { fmsg.Verbose(wl.WaylandDisplay + " is not set, assuming " + wl.FallbackName) @@ -175,7 +175,7 @@ func (seal *appSeal) setupShares(bus [2]*dbus.Config, os sys.State) error { } // set up X11 - if seal.et.Has(system.EX11) { + if seal.Has(system.EX11) { // discover X11 and grant user permission via the `ChangeHosts` command if d, ok := os.LookupEnv(display); !ok { return fmsg.WrapError(ErrXDisplay, @@ -191,7 +191,7 @@ func (seal *appSeal) setupShares(bus [2]*dbus.Config, os sys.State) error { PulseAudio server and authentication */ - if seal.et.Has(system.EPulse) { + if seal.Has(system.EPulse) { // check PulseAudio directory presence (e.g. `/run/user/%d/pulse`) pd := path.Join(seal.RuntimePath, "pulse") ps := path.Join(pd, "native") @@ -243,7 +243,7 @@ func (seal *appSeal) setupShares(bus [2]*dbus.Config, os sys.State) error { D-Bus proxy */ - if seal.et.Has(system.EDBus) { + if seal.Has(system.EDBus) { // ensure dbus session bus defaults if bus[0] == nil { bus[0] = dbus.NewConfig(seal.fid, true, true) |
