@@ -21,8 +21,6 @@ import (
2121 "time"
2222
2323 "github.com/cornelk/hashmap"
24- "github.com/gen2brain/beeep"
25- "github.com/getlantern/systray"
2624 "github.com/tawesoft/golib/v2/dialog"
2725)
2826
@@ -185,16 +183,6 @@ func main() {
185183 os .Exit (2 )
186184 }
187185 defer L .ReleaseProcessLock ()
188- if runtime .GOOS == "windows" {
189- go systray .Run (func () {
190- systray .SetIcon (clientcommon .ICON )
191- systray .SetTooltip ("PBSGO Backup running" )
192- beeep .Notify ("Proxmox Backup Go" , "Backup started" , "" )
193- },
194- func () {
195-
196- })
197- }
198186
199187 insecure := cfg .CertFingerprint != ""
200188
@@ -259,10 +247,7 @@ func main() {
259247 panic (err )
260248 }
261249 }
262- if runtime .GOOS == "windows" {
263- systray .Quit ()
264- beeep .Notify ("Proxmox Backup Go" , msg , "" )
265- }
250+
266251 if cfg .SMTP != nil {
267252 var subject string
268253
@@ -458,7 +443,6 @@ func backup_real(client *pbscommon.PBSClient, newchunk, reusechunk *atomic.Uint6
458443}
459444
460445func backup (client * pbscommon.PBSClient , newchunk , reusechunk * atomic.Uint64 , pxarOut string , backupdir string , usevss bool ) error {
461-
462446
463447 fmt .Printf ("Starting backup of %s\n " , backupdir )
464448 var err error
@@ -470,9 +454,9 @@ func backup(client *pbscommon.PBSClient, newchunk, reusechunk *atomic.Uint64, px
470454 backupdir = SNAP .FullPath
471455 //Remove VSS snapshot on windows, on linux for now NOP
472456 return backup_real (client , newchunk , reusechunk , pxarOut , backupdir )
473-
457+
474458 })
475- }else {
459+ } else {
476460 err = backup_real (client , newchunk , reusechunk , pxarOut , backupdir )
477461 }
478462
0 commit comments