Skip to content

Commit f884bc8

Browse files
committed
Move data into a dedicated folder on windows
1 parent 531e0b8 commit f884bc8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Services/Storage.vala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,14 @@ public class Jorts.Storage : Object {
3030

3131
/*************************************************/
3232
construct {
33+
34+
#if WINDOWS
35+
// In Windows we arent in a sandbox, so we need to have some courtesy and not dump in the allfolder
36+
data_directory = GLib.build_path('/', Environment.get_user_data_dir (), "io.github.ellie_commons.jorts");
37+
#else
3338
data_directory = Environment.get_user_data_dir ();
39+
#endif
40+
3441
storage_path = data_directory + "/" + FILENAME;
3542
check_if_stash ();
3643
}

0 commit comments

Comments
 (0)