mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-05 21:15:38 -05:00
- Add printers - Delete printers - Use polkit APIs as fallback on auth errors - Fix ref system to conditionally subscribe to cups when wanted
14 lines
292 B
Go
14 lines
292 B
Go
package cups
|
|
|
|
func NewTestManager(client CUPSClientInterface, pkHelper PkHelper) *Manager {
|
|
return &Manager{
|
|
client: client,
|
|
pkHelper: pkHelper,
|
|
state: &CUPSState{
|
|
Printers: make(map[string]*Printer),
|
|
},
|
|
stopChan: make(chan struct{}),
|
|
dirty: make(chan struct{}, 1),
|
|
}
|
|
}
|