[haiku-commits] Re: haiku: hrev49466 - in src: preferences/media servers/media

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 28 Jul 2015 09:34:15 +0200

Am 28/07/2015 um 06:58 schrieb Adrien Destugues:

Shouldn't media_server be made a BServer so the launch daemon can handle
restarting it? In that case, it would not need media prefs to be running
during the restart anymore?

It wouldn't even need to become a BServer for that; however, there is no API yet to launch (or restart) a job.
Furthermore, once the launch_daemon monitors running applications, you would just need to quit the media server, and the launch_daemon would then automatically restart it.

If that's not possible we should revert to the previous solution of a
locking window without buttons, I think.

I think the cleanest solution would be to hide the window on quit, but wait until the server has been restarted for now.

Other than that, I would suggest we wait with a solution once I (or someone else) added an API to BLaunchRoster to control the launch_daemon, and then just use it from Media.

Bye,
Axel.

Other related posts: