Skip to content

Commit

Permalink
Add soem boilerplate for the background API
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Mar 16, 2024
1 parent ddf149d commit 691b13d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions background/background.go
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 691b13d

Please sign in to comment.