Browse Source

[common/fs] create XDG_DATA_{HOME,CACHE,CONFIG}_HOME if we are the first application to ever be ran or they dont exist for a reason (#4087)

samu will be happy

basically this handles the edge case where either:
a) eden is the first application ever ran (i.e no config dirs made yet)
b) user didnt have them
c) user is trying to run on a sandbox appimage or whatever bs

Signed-off-by: lizzie <lizzie@eden-emu.dev>

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4087
Reviewed-by: crueter <crueter@eden-emu.dev>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
pull/4091/head
lizzie 4 days ago
committed by crueter
parent
commit
4edb1ac6c5
No known key found for this signature in database GPG Key ID: 425ACD2D4830EBC6
  1. 2
      src/common/fs/path_util.cpp

2
src/common/fs/path_util.cpp

@ -90,7 +90,7 @@ public:
void CreateEdenPaths() {
std::for_each(eden_paths.begin(), eden_paths.end(), [](auto &path) {
void(FS::CreateDir(path.second));
void(FS::CreateDirs(path.second));
});
}

Loading…
Cancel
Save