diff --git a/apps/startui.cpp b/apps/startui.cpp index 13b4011e..e0494a5f 100644 --- a/apps/startui.cpp +++ b/apps/startui.cpp @@ -109,8 +109,6 @@ Result luna_main(int argc, char** argv) StringView wind_command[] = { "/usr/bin/wind" }; TRY(os::Process::spawn(wind_command[0], Slice(wind_command, 1))); - TRY(wait_until_file_created("/tmp/wsys.sock", 10000)); - clearenv(); chdir(pw->pw_dir); setenv("PATH", "/usr/bin:/usr/local/bin", 1); @@ -122,6 +120,9 @@ Result luna_main(int argc, char** argv) StringView launch_command[] = { "/usr/bin/launch" }; TRY(spawn_process_as_user(Slice(launch_command, 1), pw->pw_uid, pw->pw_gid, groups.slice())); + TRY(wait_until_file_created("/tmp/wsys.sock", 10000)); + TRY(wait_until_file_created("/tmp/launch.sock", 10000)); + StringView taskbar_command[] = { "/usr/bin/taskbar" }; TRY(spawn_process_as_user(Slice(taskbar_command, 1), pw->pw_uid, pw->pw_gid, system_groups.slice()));