launch_daemon: Use BRoster::Launch() without registrar.

* BRoster now allows settings a "no-registrar" mode that is currently
  only honored in _LaunchApp(), though.
* Job::Launch() is now using this, which also allows launching
  applications by signature (ie. if the job name matches the
  signature, you can omit the "launch" option).
This commit is contained in:
Axel Dörfler
2015-07-22 20:42:13 +02:00
parent 1f9826a778
commit 78e39852fa
5 changed files with 37 additions and 25 deletions
+4 -1
View File
@@ -212,6 +212,8 @@ private:
const entry_ref* ref,
bool readyToRun) const;
void _SetWithoutRegistrar(bool noRegistrar);
void _InitMessenger();
static status_t _InitMimeMessenger(void* data);
@@ -229,7 +231,8 @@ private:
BMessenger fMessenger;
BMessenger fMimeMessenger;
int32 fMimeMessengerInitOnce;
uint32 _reserved[2];
bool fNoRegistrar;
uint32 _reserved[1];
};
// global BRoster instance
+4 -1
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2001-2007, Haiku.
* Copyright 2001-2015, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
@@ -52,6 +52,9 @@ class BRoster::Private {
{ return fRoster->_IsAppRegistered(ref, team, token, preRegistered,
info); }
void SetWithoutRegistrar(bool noRegistrar) const
{ fRoster->_SetWithoutRegistrar(noRegistrar); }
status_t RemoveApp(team_id team) const
{ return fRoster->_RemoveApp(team); }