gdm3

package
v58.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

package gdm3 provides functions for interfacing with Gnome Desktop Manager 3

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoLogonUser

func AutoLogonUser(source []byte) (username string)

AutoLogonUser interprets source as the contents of the gdm3 custom.conf file, and parses it to look for an auto login user, and returns it if found, otherwise it returns the empty string.

func InteractiveUsername

func InteractiveUsername() (string, error)

InteractiveUsername attempts to determine which single user is currently logged into a gnome3 desktop session. If it doesn't find precisely one user, it returns an error, otherwise it returns the user it found.

func SetAutoLogin

func SetAutoLogin(username string, source []byte) (output []byte)

SetAutoLogin interprets source as the contents of the gdm3 custom.conf file, and returns an updated version of it with the automatic desktop login enabled for the user specified by username.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL