Skip to content

Commit

Permalink
Correctly set user_default_dir on Windows
Browse files Browse the repository at this point in the history
This bugs was introduced by me in
28e0e80 included since Grisbi 3.0.0

This caused "permission denied" errors when saving the file (on Windows
only).

Fixes: https://www.grisbi.org/bugsreports/view.php?id=2283
  • Loading branch information
LudovicRousseau committed Jan 20, 2024
1 parent 108b46d commit 9167c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gsb_dirs.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ void gsb_dirs_init (char* gsb_bin_path)
}
#endif /* OS_OSX */

user_default_dir = g_strdup (g_get_user_special_dir (G_USER_DIRECTORY_DOCUMENTS));
}
#endif /* G_OS_WIN32 */
user_default_dir = g_strdup (g_get_user_special_dir (G_USER_DIRECTORY_DOCUMENTS));

/* corrige un bug si un répertoire ui existe dans le compte de l'utilisateur */
if (g_strcmp0 (gsb_bin_path, "grisbi") == 0)
Expand Down

0 comments on commit 9167c17

Please sign in to comment.