mirror of
https://github.com/RGBCube/serenity
synced 2025-07-14 21:47:35 +00:00
LibCore: Add StandardPaths thing to retrieve various standard locations
Fixes #1853.
This commit is contained in:
parent
3b434068eb
commit
c45e16f605
10 changed files with 51 additions and 25 deletions
|
@ -28,7 +28,7 @@
|
|||
#include <AK/QuickSort.h>
|
||||
#include <LibCore/ConfigFile.h>
|
||||
#include <LibCore/DirIterator.h>
|
||||
#include <LibCore/UserInfo.h>
|
||||
#include <LibCore/StandardPaths.h>
|
||||
#include <LibGUI/Action.h>
|
||||
#include <LibGUI/Application.h>
|
||||
#include <LibGUI/Desktop.h>
|
||||
|
@ -81,7 +81,7 @@ int main(int argc, char** argv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (chdir(get_current_user_home_path().characters()) < 0) {
|
||||
if (chdir(Core::StandardPaths::home_directory().characters()) < 0) {
|
||||
perror("chdir");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue