From 4f86bb69c57929cc4b914982f338c5146233bcfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 31 Oct 2005 19:36:19 +0000 Subject: [PATCH] BRoster::ActivateApp() now talks to the Desktop, not the app_server anymore. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14600 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/app/Roster.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/kits/app/Roster.cpp b/src/kits/app/Roster.cpp index d62a4add9d..4cfe26f4ee 100644 --- a/src/kits/app/Roster.cpp +++ b/src/kits/app/Roster.cpp @@ -785,6 +785,19 @@ BRoster::ActivateApp(team_id team) const BPrivate::PortLink link(port, replyPort.port); + // We can't use AppServerLink because be_app may be NULL + link.StartMessage(AS_GET_DESKTOP); + link.Attach(replyPort.port); + link.Attach(getuid()); + + int32 code; + if (link.FlushWithReply(code) != B_OK || code != B_OK) + return B_ERROR; + + // we now talk to the desktop + link.Read(&port); + link.SetSenderPort(port); + // prepare the message status_t error = link.StartMessage(AS_ACTIVATE_APP); if (error != B_OK) @@ -799,7 +812,6 @@ BRoster::ActivateApp(team_id team) const return error; // send it - int32 code; error = link.FlushWithReply(code); if (error != B_OK) return error;