Skip to content
Snippets Groups Projects
Verified Commit 37d478fb authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

[Cache] Create XDG directory early

parent a4d84959
No related branches found
No related tags found
No related merge requests found
......@@ -121,6 +121,12 @@ impl Cache {
env::remove_var("HOME");
}
match self.drop_privileges(username) {
Ok(_) => base_dirs.create_cache_directory(BASE_NAME).ok(),
Err(_) => None
};
self.restore_privileges();
return Ok(base_dirs);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment