From fabb8465172eb5a73d646dd7179872ce37750344 Mon Sep 17 00:00:00 2001 From: Andinus Date: Thu, 19 Mar 2020 18:40:50 +0530 Subject: Put the functions into seperate files & fix compile time error Splitting the program into seperate programs will cause the binary size to double if the end user wants both services. Instead splitting the functions in seperate files will keep the binary size small for both services combined & also the program will be maintainable. --- pkg/background/set.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg') diff --git a/pkg/background/set.go b/pkg/background/set.go index 2badc48..0f7333d 100644 --- a/pkg/background/set.go +++ b/pkg/background/set.go @@ -8,6 +8,7 @@ import ( // Set calls feh to set the background func Set(path string) error { + var err error switch os.Getenv("XDG_CURRENT_DESKTOP") { case "GNOME", "Unity", "Pantheon": path = fmt.Sprintf("%s%s", "file://", path) -- cgit 1.4.1-2-gfad0