Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( X11SessionsDir = "/etc/X11/Sessions" XSessionsDir = "/usr/share/xsessions" WaylandSessionsDir = "/usr/share/wayland-sessions" ShellsFile = "/etc/shells" )
var PlasmaWaylandWrapperPath = "/usr/libexec/plasma-dbus-run-session-if-needed"
Functions ¶
func ApplyWaylandWrappers ¶ added in v0.0.26
func ApplyWaylandWrappers(execCmd string, d *Discoverer) string
ApplyWaylandWrappers modifies the exec command to include necessary wrappers (like the SDDM dbus/logind wrapper for KDE Plasma).
func RegisterPostParseDesktopHook ¶ added in v0.0.26
func RegisterPostParseDesktopHook(hook func(string, *Discoverer) string)
RegisterPostParseDesktopHook allows external modules (like wayland wrappers) to register hooks to modify the exec command.
Types ¶
type Discoverer ¶ added in v0.0.16
type Discoverer struct {
ExecLookPath func(string) (string, error)
ShellsFile string
OpenShells func(string) (io.ReadCloser, error)
}
func NewDiscoverer ¶ added in v0.0.16
func NewDiscoverer() *Discoverer