mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-04 23:19:27 +00:00
Base: Create user default Music and Pictures directories
This commit is contained in:
parent
c8dc77a552
commit
5a8e82e6ea
|
@ -1,7 +1,10 @@
|
||||||
[
|
[
|
||||||
{ "name": "Root", "path": "/" },
|
{ "name": "Root", "path": "/" },
|
||||||
{ "name": "Home", "path": "/home/anon" },
|
{ "name": "Home", "path": "/home/anon" },
|
||||||
{ "name": "Documents", "path": "/home/anon/Documents" },
|
|
||||||
{ "name": "Desktop", "path": "/home/anon/Desktop" },
|
{ "name": "Desktop", "path": "/home/anon/Desktop" },
|
||||||
{ "name": "Downloads", "path": "/home/anon/Downloads" }
|
{ "name": "Documents", "path": "/home/anon/Documents" },
|
||||||
|
{ "name": "Downloads", "path": "/home/anon/Downloads" },
|
||||||
|
{ "name": "Music", "path": "/home/anon/Music" },
|
||||||
|
{ "name": "Pictures", "path": "/home/anon/Pictures" },
|
||||||
|
{ "name": "Videos", "path": "/home/anon/Videos" }
|
||||||
]
|
]
|
||||||
|
|
|
@ -160,6 +160,8 @@ mkdir -p mnt/root
|
||||||
mkdir -p mnt/home/anon
|
mkdir -p mnt/home/anon
|
||||||
mkdir -p mnt/home/anon/Desktop
|
mkdir -p mnt/home/anon/Desktop
|
||||||
mkdir -p mnt/home/anon/Downloads
|
mkdir -p mnt/home/anon/Downloads
|
||||||
|
mkdir -p mnt/home/anon/Music
|
||||||
|
mkdir -p mnt/home/anon/Pictures
|
||||||
mkdir -p mnt/home/nona
|
mkdir -p mnt/home/nona
|
||||||
# FIXME: Handle these test copies using CMake install rules
|
# FIXME: Handle these test copies using CMake install rules
|
||||||
rm -fr mnt/home/anon/Tests/js-tests mnt/home/anon/Tests/cpp-tests
|
rm -fr mnt/home/anon/Tests/js-tests mnt/home/anon/Tests/cpp-tests
|
||||||
|
|
|
@ -36,7 +36,12 @@ static void initialize_if_needed()
|
||||||
// Fallback : If the user doesn't have custom locations, use some default ones.
|
// Fallback : If the user doesn't have custom locations, use some default ones.
|
||||||
s_common_locations.append({ "Root", "/" });
|
s_common_locations.append({ "Root", "/" });
|
||||||
s_common_locations.append({ "Home", Core::StandardPaths::home_directory() });
|
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({ "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;
|
s_initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue