From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZWLk-0003YP-AX for qemu-devel@nongnu.org; Mon, 25 Jan 2010 16:19:56 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZWLf-0003RA-LP for qemu-devel@nongnu.org; Mon, 25 Jan 2010 16:19:55 -0500 Received: from [199.232.76.173] (port=47980 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZWLf-0003Qv-8b for qemu-devel@nongnu.org; Mon, 25 Jan 2010 16:19:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:65329) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NZWLe-0005hX-OR for qemu-devel@nongnu.org; Mon, 25 Jan 2010 16:19:51 -0500 Message-ID: <4B5E0AF1.9060107@redhat.com> Date: Mon, 25 Jan 2010 22:19:45 +0100 From: Paolo Bonzini MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCH 1/3] Support --sysconfdir in configure to specify path to configuration files (v3) References: <1264342938-7363-1-git-send-email-aliguori@us.ibm.com> <1264342938-7363-2-git-send-email-aliguori@us.ibm.com> <4B5C65D7.5040304@codemonkey.ws> <4B5DADFE.8050606@redhat.com> <4B5E07B4.4090205@redhat.com> <4B5E09B8.8030809@codemonkey.ws> In-Reply-To: <4B5E09B8.8030809@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori , Avi Kivity , qemu-devel On 01/25/2010 10:14 PM, Anthony Liguori wrote: > On 01/25/2010 03:05 PM, Paolo Bonzini wrote: >> >>>>> I'm not sure about the choice for Windows. Do we want >>>>> possibly a dozen of .conf files all in the same directory as >>>>> the binaries, or maybe it's better to set sysconfdir = >>>>> ${prefix}/conf, confdir=${sysconfdir} on Windows? >>>> >>>> I honestly don't know. What's the normal thing to do with >>>> Windows? >>> >>> The registry, I think. >> >> The registry would be used indeed to get the path or to override >> defaults. However, what would be the default value (written in the >> registry by the installer, or used by the program if the registry >> value is absent)? > > ini-style configs are not at all uncommon on Windows. I also don't > think it's that uncommon to store executables and config files > side-by-side in a Program Files directory. Indeed, that's what I'm saying. The registry may hold a path to the ini files, but you would still have to think of a sane default. You chose the binaries' directory, fine, that's not a huge deal---someone who cares about Windows can step up and say what they think. Paolo