-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add soem boilerplate for the background API
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |