Return-Path: From: Marcel Holtmann To: BlueZ development In-Reply-To: <5f84803c0712171129o770c38e5g35d57dea64be94f5@mail.gmail.com> References: <5f84803c0712030733q38350283m77e8930dfcca4162@mail.gmail.com> <1196699122.12292.113.camel@violet> <5f84803c0712030850k5810ee43na4a13f5e74657388@mail.gmail.com> <1196701181.12292.128.camel@violet> <5f84803c0712060959n6db58e78y4adfa1b4a212df71@mail.gmail.com> <1197870459.8050.80.camel@aeonflux> <5f84803c0712170754n14d401a7l225d3d9b2f413850@mail.gmail.com> <1197917583.8050.87.camel@aeonflux> <5f84803c0712171129o770c38e5g35d57dea64be94f5@mail.gmail.com> Date: Mon, 17 Dec 2007 21:17:04 +0100 Message-Id: <1197922624.8050.107.camel@aeonflux> Mime-Version: 1.0 Subject: Re: [Bluez-devel] [PATCH] [RESEND] make bluez GNOME UIs singletons Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net Hi Chris, > I wanted to distinguish between an instance already running and actual > DBUS errors. If an instance is already running then we can exit with > 0 since the intended action was successful (the launched application > is now in the foreground). If, however, there are errors connecting > to the bus then we exit with 1. It isn't a big deal though. I've > attached an updated apps patch that gets rid of the retval parameter. I think that is simply too complicated. If we use --singleton, it all has to come into place. And if D-Bus fails, the application is not good anyway. So I don't see the real benefit. If at any time later it will be needed, we can introduce it then. Please use use gtk_init_with_args and make the GOptionEntry data global and static. Look at bluetooth-analyzer for an example. Also don't translate config options and errors that are printed on the command line. We only translate stuff inside the UI. The normal user won't see these anyway. Regards Marcel ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel