From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Sassmannshausen Subject: dmd: make user-mode easier to use. Date: Mon, 3 Feb 2014 18:37:43 +0100 Message-ID: <1391449065-19063-1-git-send-email-alex.sassmannshausen@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WANTU-0002T1-8R for guix-devel@gnu.org; Mon, 03 Feb 2014 12:38:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WANTL-0007is-Ru for guix-devel@gnu.org; Mon, 03 Feb 2014 12:38:24 -0500 Received: from mail-ea0-x232.google.com ([2a00:1450:4013:c01::232]:35147) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WANTL-0007ib-L2 for guix-devel@gnu.org; Mon, 03 Feb 2014 12:38:15 -0500 Received: by mail-ea0-f178.google.com with SMTP id a15so3961312eae.9 for ; Mon, 03 Feb 2014 09:38:14 -0800 (PST) Received: from user-ThinkPad-X60.trisquel.info ([109.129.238.27]) by mx.google.com with ESMTPSA id 8sm72028975eef.1.2014.02.03.09.38.11 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Feb 2014 09:38:13 -0800 (PST) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Hello, This patch series allows dmd to work out of the box in 'user-mode' after installation. To achieve this it ensures all dmd related files are stored in ~/.dmd.d/ when run in user-mode, and it creates a bare-bones configuration file for the user to start building upon if no configuration file exists yet. I decided to implement the above minimising any changes to the actual logic of existing dmd. The result is a slight mixing up of side-effect folder/file creation and side-effect free checks. The alternative would have been to separate the folder creation from the procedures carrying out the checks for the existence of the configuration folder and files. I wasn't sure whether it was better to minimise the changes in the patches or better to 'just do the right thing', even if it entails larger and more complex patches. Let me know your thoughts if you think I should have gone the other way. Best wishes, Alex