mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00
Base: Create user default Music and Pictures directories
This commit is contained in:
parent
c8dc77a552
commit
5a8e82e6ea
3 changed files with 12 additions and 2 deletions
|
@ -36,7 +36,12 @@ static void initialize_if_needed()
|
|||
// Fallback : If the user doesn't have custom locations, use some default ones.
|
||||
s_common_locations.append({ "Root", "/" });
|
||||
s_common_locations.append({ "Home", Core::StandardPaths::home_directory() });
|
||||
s_common_locations.append({ "Desktop", Core::StandardPaths::desktop_directory() });
|
||||
s_common_locations.append({ "Documents", Core::StandardPaths::documents_directory() });
|
||||
s_common_locations.append({ "Downloads", Core::StandardPaths::downloads_directory() });
|
||||
s_common_locations.append({ "Music", Core::StandardPaths::music_directory() });
|
||||
s_common_locations.append({ "Pictures", Core::StandardPaths::pictures_directory() });
|
||||
s_common_locations.append({ "Videos", Core::StandardPaths::videos_directory() });
|
||||
s_initialized = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue