Launch app_server in user context.

This way, we get the user's environment variables, and so should
input_server, which is started by app_server.

This should, after 6 years, fix #12534. We may need to revisit this
when/if we add multiuser support, but that is a problem for another day.

Change-Id: I04698306bc68a585acd232e9f9d29c50bc170a1f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4506
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Augustin Cavalier 2021-09-27 18:39:20 -04:00 committed by waddlesplash
parent b69c9008dd
commit a04b2f4c5e
3 changed files with 12 additions and 10 deletions

View File

@ -5,10 +5,6 @@ service x-vnd.Haiku-registrar {
}
}
service x-vnd.Haiku-app_server {
launch /system/servers/app_server
}
service x-vnd.Haiku-debug_server {
launch /system/servers/debug_server
}
@ -71,8 +67,7 @@ job x-vnd.Haiku-cddb_lookup {
on volume_mounted
}
target login {
job x-vnd.Haiku-autologin {
launch /system/bin/autologin
}
# target login
job x-vnd.Haiku-autologin {
launch /system/bin/autologin
}

View File

@ -1,6 +1,10 @@
target desktop {
env /system/boot/SetupEnvironment
env /system/boot/SetupEnvironment
service x-vnd.Haiku-app_server {
launch /system/servers/app_server
}
target desktop {
service x-vnd.Be-TRAK {
launch /system/Tracker
legacy

View File

@ -70,6 +70,8 @@ AppServer::AppServer(status_t* status)
// Create the bitmap allocator. Object declared in BitmapManager.cpp
gBitmapManager = new BitmapManager();
#if 0
// This is not presently needed, as app_server is launched from the login session.
#ifndef HAIKU_TARGET_PLATFORM_LIBBE_TEST
// TODO: check the attached displays, and launch login session for them
BMessage data;
@ -77,6 +79,7 @@ AppServer::AppServer(status_t* status)
data.AddInt32("session", 0);
BLaunchRoster().Target("login", data);
#endif
#endif
}