Skip to content

Commit 56e45a1

Browse files
committed
fix: Use XDG download directory correctly
Signed-off-by: Felicitas Pojtinger <[email protected]>
1 parent bd66e2e commit 56e45a1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

main.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,7 @@ func main() {
5151
settings := gio.NewSettings(resources.GAppID)
5252

5353
if storage := settings.String(resources.GSchemaStorageKey); strings.TrimSpace(storage) == "" {
54-
home, err := os.UserHomeDir()
55-
if err != nil {
56-
panic(err)
57-
}
58-
59-
downloadPath := filepath.Join(home, "Downloads", "Multiplex")
54+
downloadPath := glib.GetUserSpecialDir(glib.UserDirectoryDownload)
6055

6156
settings.SetString(resources.GSchemaStorageKey, downloadPath)
6257

0 commit comments

Comments
 (0)