33
33
#include < LibCore/ConfigFile.h>
34
34
#include < LibCore/DesktopServices.h>
35
35
#include < LibCore/MimeData.h>
36
- #include < LibCore/UserInfo .h>
36
+ #include < LibCore/StandardPaths .h>
37
37
#include < LibGUI/AboutDialog.h>
38
38
#include < LibGUI/Action.h>
39
39
#include < LibGUI/ActionGroup.h>
@@ -91,7 +91,7 @@ int main(int argc, char** argv)
91
91
}
92
92
93
93
if (app.args ().contains_slow (" --desktop" ) || app.args ().contains_slow (" -d" ))
94
- return run_in_desktop_mode (move (config), String::format ( " %s/Desktop " , get_current_user_home_path (). characters () ));
94
+ return run_in_desktop_mode (move (config), Core::StandardPaths::desktop_directory ( ));
95
95
96
96
// our initial location is defined as, in order of precedence:
97
97
// 1. the first command-line argument (e.g. FileManager /bin)
@@ -103,7 +103,7 @@ int main(int argc, char** argv)
103
103
initial_location = argv[1 ];
104
104
105
105
if (initial_location.is_empty ())
106
- initial_location = get_current_user_home_path ();
106
+ initial_location = Core::StandardPaths::home_directory ();
107
107
108
108
if (initial_location.is_empty ())
109
109
initial_location = " /" ;
@@ -530,7 +530,7 @@ int run_in_windowed_mode(RefPtr<Core::ConfigFile> config, String initial_locatio
530
530
531
531
auto go_home_action = GUI::CommonActions::make_go_home_action (
532
532
[&](auto &) {
533
- directory_view.open (get_current_user_home_path ());
533
+ directory_view.open (Core::StandardPaths::home_directory ());
534
534
},
535
535
window);
536
536
0 commit comments