From 59b0036e71fa70bdd0fcf6ffe1f191fdb386ba64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 7 Jan 2016 21:05:51 +0100 Subject: [PATCH] Printers: Workaround for broken print server connection. * The actual problem is that the launch_daemon does not notice the manual launch of system services (because of the missing registrar that provides that service). * So not checking if the print server is running actually solves the issue; otherwise the launch_daemon starts its own server, that will then get shut down, as there already is a print server (the one launched by the Printers preferences). * Closes ticket #12531. --- src/preferences/printers/Globals.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/preferences/printers/Globals.cpp b/src/preferences/printers/Globals.cpp index ebc14ddc97..99af7a7435 100644 --- a/src/preferences/printers/Globals.cpp +++ b/src/preferences/printers/Globals.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2001-2010, Haiku. + * Copyright 2001-2016, Haiku. * Distributed under the terms of the MIT License. * * Authors: @@ -39,10 +39,6 @@ ActivePrinterName() status_t GetPrinterServerMessenger(BMessenger& msgr) { - // If print server is not yet running, start it - if (!be_roster->IsRunning(PSRV_SIGNATURE_TYPE)) - be_roster->Launch(PSRV_SIGNATURE_TYPE); - msgr = BMessenger(PSRV_SIGNATURE_TYPE); return msgr.IsValid() ? B_OK : B_ERROR; }