Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CA267200D2F for ; Wed, 1 Nov 2017 14:46:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C89E8160BEA; Wed, 1 Nov 2017 13:46:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 19F3D160BE6 for ; Wed, 1 Nov 2017 14:46:04 +0100 (CET) Received: (qmail 28190 invoked by uid 500); 1 Nov 2017 13:46:04 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 28178 invoked by uid 99); 1 Nov 2017 13:46:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Nov 2017 13:46:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 7661FC6B93 for ; Wed, 1 Nov 2017 13:46:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id CppFvaHV2NW5 for ; Wed, 1 Nov 2017 13:46:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E86D360E0E for ; Wed, 1 Nov 2017 13:46:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5F7BBE00A3 for ; Wed, 1 Nov 2017 13:46:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1C53D24400 for ; Wed, 1 Nov 2017 13:46:00 +0000 (UTC) Date: Wed, 1 Nov 2017 13:46:00 +0000 (UTC) From: "Simon Ochsenreither (JIRA)" To: notifications@ant.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IVY-1502) Be a nice freedesktop citizen, move the ~/.ivy to the appropriate location MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 01 Nov 2017 13:46:06 -0000 [ https://issues.apache.org/jira/browse/IVY-1502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16234078#comment-16234078 ] Simon Ochsenreither commented on IVY-1502: ------------------------------------------ Yes, the original bug report was incorrect in some details, but I didn't want to create a new ticket, duplicating the overall intent of this one. > Switching to the layout recommended by freedesktop might feel natural to Linux users, or rather users of Linux distros that have adopted the spec, but will be completely surprising to Windows and probably Mac users. I'm not suggesting such a thing, that would be a pretty bad idea. What I want is that Ivy follows platform standards on _all_ platforms: - the XDG base directory specification on Linux, - the SpecialFolder enumeration on Windows, and - the Standard Directories rules on macOS. This is really important, because Windows makes a difference between data that is roaming (is copied across the network if a user logs into his account on a different machine) and data that is machine-local. macOS also has a dedicated cache directory that is handled in a special way by applications (for instance macOS' backup tool ignores it) and the operating system (when disk space runs low). It's pretty much the same for Linux. My proposal is that - configuration should go into the configuration folder specified by the operating system (for instance .config/ivy/ on Linux) - artifacts from repositories should go into the cache folder specified by the operating system (for instance .cache/ivy/ on Linux) - locally published artifacts should go int the application data directory (for instance .local/share/ivy/ on Linux) The last two points provide a large benefit, because then it is possible to delete .cache without losing locally published artifacts that cannot be restored from remote repositories. Deleting .cache should have no impact on a user expect his program running a bit slower until the cache has been restored. I understand your concerns regarding documentation and support. This could be addressed by Ivy printing an informative message on startup, pointing to the directories used, or adding a command line flag that does the same. > Be a nice freedesktop citizen, move the ~/.ivy to the appropriate location > ---------------------------------------------------------------------------- > > Key: IVY-1502 > URL: https://issues.apache.org/jira/browse/IVY-1502 > Project: Ivy > Issue Type: Bug > Components: Core > Affects Versions: 2.3.0 > Environment: linux > Reporter: PerfectCarl > Priority: Minor > > According to the XDG specification [1], there is a better way to store the user specific data of an application by dumping in new hidden folder in ~/. > More information about it can be found [2] > The specification defines places to store the data so that the user profile can be updated and moved properly while reducing some weird bugs. > Those places would be ~/.local/ivy or ~/.cache/ivy and other (depending on the data stored) > [1]: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html > [2]: https://ploum.net/207-modify-your-application-to-use-xdg-folders/ -- This message was sent by Atlassian JIRA (v6.4.14#64029)