We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd66e2e commit 56e45a1Copy full SHA for 56e45a1
main.go
@@ -51,12 +51,7 @@ func main() {
51
settings := gio.NewSettings(resources.GAppID)
52
53
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")
+ downloadPath := glib.GetUserSpecialDir(glib.UserDirectoryDownload)
60
61
settings.SetString(resources.GSchemaStorageKey, downloadPath)
62
0 commit comments