diff options
author | Andinus <andinus@nand.sh> | 2020-03-19 18:40:50 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-03-19 18:40:50 +0530 |
commit | fabb8465172eb5a73d646dd7179872ce37750344 (patch) | |
tree | 4a1c13c7d61c4a474b982604a63404b3546cda73 /pkg/background | |
parent | 8e87d706c72e71ba4ebde91e8e289611d4e59497 (diff) | |
download | cetus-fabb8465172eb5a73d646dd7179872ce37750344.tar.gz |
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.
Diffstat (limited to 'pkg/background')
-rw-r--r-- | pkg/background/set.go | 1 |
1 files changed, 1 insertions, 0 deletions
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) |