From 691b13ddac1616c9e99ad6d734a0307adab67767 Mon Sep 17 00:00:00 2001 From: Jacob Date: Sat, 16 Mar 2024 13:26:20 +0100 Subject: [PATCH] Add soem boilerplate for the background API --- background/background.go | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 background/background.go diff --git a/background/background.go b/background/background.go new file mode 100644 index 0000000..1e2f577 --- /dev/null +++ b/background/background.go @@ -0,0 +1,27 @@ +// Package background lets sandboxed applications request that the application is allowed to run in the background or started automatically when the user logs in. +package background + +type RequestOptions struct { + HandleToken string + Reason string + Autostart bool + Commandline []string + DbusActivatable bool +} + +type RequestResult struct { + Background bool + Autostart bool +} + +type StatusOptions struct { + Message string +} + +func RequestBackground(parentWindow string, options *RequestOptions) (*RequestResult, error) { + return nil, nil +} + +func SetStatus(options StatusOptions) error { + return nil +}