mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-05 12:44:19 +01:00
updated initCacheDir
This commit is contained in:
@@ -76,6 +76,8 @@ static void initCacheDir(FFstate* state)
|
||||
ffStrbufAppendS(&state->cacheDir, state->passwd->pw_dir);
|
||||
ffStrbufAppendS(&state->cacheDir, "/.cache/");
|
||||
}
|
||||
else if(state->cacheDir.chars[state->cacheDir.length - 1] != '/')
|
||||
ffStrbufAppendC(&state->cacheDir, '/');
|
||||
|
||||
mkdir(state->cacheDir.chars, S_IRWXU | S_IXGRP | S_IRGRP | S_IXOTH | S_IROTH); //I hope everybody has a cache folder but whow knews
|
||||
|
||||
|
||||
Reference in New Issue
Block a user