mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 07:52:50 -05:00
cups: add comprehensive CUPs setting page
- Add printers - Delete printers - Use polkit APIs as fallback on auth errors - Fix ref system to conditionally subscribe to cups when wanted
This commit is contained in:
@@ -31,7 +31,9 @@ import (
|
||||
"github.com/AvengeMedia/DankMaterialShell/core/pkg/syncmap"
|
||||
)
|
||||
|
||||
const APIVersion = 21
|
||||
const APIVersion = 22
|
||||
|
||||
var CLIVersion = "dev"
|
||||
|
||||
type Capabilities struct {
|
||||
Capabilities []string `json:"capabilities"`
|
||||
@@ -39,6 +41,7 @@ type Capabilities struct {
|
||||
|
||||
type ServerInfo struct {
|
||||
APIVersion int `json:"apiVersion"`
|
||||
CLIVersion string `json:"cliVersion,omitempty"`
|
||||
Capabilities []string `json:"capabilities"`
|
||||
}
|
||||
|
||||
@@ -431,6 +434,7 @@ func getServerInfo() ServerInfo {
|
||||
|
||||
return ServerInfo{
|
||||
APIVersion: APIVersion,
|
||||
CLIVersion: CLIVersion,
|
||||
Capabilities: caps,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user