{ "id": "91850", "key": "TIMOB-9199", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2012-05-15T08:17:36.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "cb-tooling" ], "versions": [], "issuelinks": [ { "id": "24223", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "106125", "key": "TIMOB-11988", "fields": { "summary": "CLI: allow user to set sdk install directory", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "27704", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "112746", "key": "TISTUD-4244", "fields": { "summary": "Windows: Titanium SDK Path: use same path as CLI", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2016-08-24T06:17:50.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "h6.Issue\r\nOn linux systems information is currently stored in ~/.titanium. It would be better to use the locations defined in the XDG Base Directory Specification.\r\n\r\nh6.Link\r\nhttps://live.gnome.org/GnomeGoals/XDGConfigFolders", "attachment": [ { "id": "27693", "filename": "0001-Use-XDG-Dirs-instead-of-HOME-by-default.patch", "author": { "name": "mccann", "key": "mccann", "displayName": "Jon McCann", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-15T08:20:16.000+0000", "size": 888, "mimeType": "text/x-c" } ], "flagged": false, "summary": "use XDG dirs instead of HOME", "creator": { "name": "mccann", "key": "mccann", "displayName": "Jon McCann", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mccann", "key": "mccann", "displayName": "Jon McCann", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Linux", "comment": { "comments": [ { "id": "194828", "author": { "name": "mccann", "key": "mccann", "displayName": "Jon McCann", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unfortunately I haven't been able to test this and not sure it is the complete fix.", "updateAuthor": { "name": "mccann", "key": "mccann", "displayName": "Jon McCann", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-15T08:20:16.000+0000", "updated": "2012-05-15T08:20:16.000+0000" }, { "id": "194946", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "This seems to be a rather Gnome-centric patch.\r\n\r\n", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2012-05-15T20:33:11.000+0000", "updated": "2012-05-15T20:33:11.000+0000" }, { "id": "194947", "author": { "name": "mccann", "key": "mccann", "displayName": "Jon McCann", "active": true, "timeZone": "America/Los_Angeles" }, "body": "How so? There is nothing GNOME specific about it. The spec is Linux wide. http://standards.freedesktop.org/basedir-spec/latest/", "updateAuthor": { "name": "mccann", "key": "mccann", "displayName": "Jon McCann", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-15T21:08:37.000+0000", "updated": "2012-05-15T21:08:37.000+0000" }, { "id": "195716", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This patch appears to apply to env.py in the SDK, so moving it to Titanium Mobile.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-23T06:25:23.000+0000", "updated": "2012-05-23T06:25:23.000+0000" }, { "id": "230565", "author": { "name": "eheintzmann", "key": "eheintzmann", "displayName": "Eric Heintzmann", "active": true, "timeZone": "America/Los_Angeles" }, "body": "What is planned now about FreeDesktop XDG basedir specification for Titanium?\r\n\r\n\r\nhttp://ploum.net/post/207-modify-your-application-to-use-xdg-folders\r\nhttps://live.gnome.org/GnomeGoals/XDGConfigFolders\r\nhttp://standards.freedesktop.org/basedir-spec/latest/", "updateAuthor": { "name": "eheintzmann", "key": "eheintzmann", "displayName": "Eric Heintzmann", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-08T12:58:45.000+0000", "updated": "2012-12-08T12:58:45.000+0000" }, { "id": "233337", "author": { "name": "eheintzmann", "key": "eheintzmann", "displayName": "Eric Heintzmann", "active": true, "timeZone": "America/Los_Angeles" }, "body": "According to XDG Base directory specification:\r\nUser data should go into $XDG_DATA_HOME (which default to ~/.local/share),\r\nuser preferences should go into $XDG_CONFIG_HOME (which default to ~/.config)\r\nand cached data should go to $XDG_CACHE_HOME (which default to ~/.cache).\r\nMore details at :\r\nhttp://ploum.net/post/207-modify-your-application-to-use-xdg-folders\r\nhttps://live.gnome.org/GnomeGoals/XDGConfigFolders\r\n\r\nFull specification can be found at: \r\nhttp://standards.freedesktop.org/basedir-spec/latest/\r\n\r\nThe Freedesktop.org XDG base directory specification have good de facto adoption.\r\nIt has been adopted by:\r\n- GNOME ( https://live.gnome.org/GnomeGoals/XDGConfigFolders )\r\n- GTK+ ( https://bugzilla.gnome.org/show_bug.cgi?id=646631 )\r\n- KDE ( http://techbase.kde.org/KDE_System_Administration/XDG_Filesystem_Hierarchy#Freedesktop.org_and_Standard_Directories )\r\n- QT ( http://harmattan-dev.nokia.com/docs/library/html/qt4/qsettings.html#setPath )\r\n- XFCE ( http://docs.xfce.org/xfce/xfce4-session/advanced in Files and Environment Variables )\r\n- LXDE\r\n- Razor-qt\r\n- VLC ( https://trac.videolan.org/vlc/ticket/1267 )\r\n- GStreamer ( https://bugzilla.gnome.org/show_bug.cgi?id=518597 )\r\n- Chrome ( http://code.google.com/p/chromium/issues/detail?id=16976 )\r\n- many more upstream applications\r\n- Ubuntu ( http://brainstorm.ubuntu.com/idea/6557/ & http://packages.ubuntu.com/fr/source/precise/libxdg-basedir )\r\n- Debian ( http://packages.debian.org/squeeze/libxdg-basedir1 )\r\n- Red Hat\r\n- Fedora\r\n- Suse\r\n- many more distributions\r\n\r\nI think that Titanium should use same locations than the vast majority of Desktop environment and applications.\r\n\r\n\r\nThere are real advantages of following this specification :\r\n- a lot less cluttered $HOME\r\n- Make backups a lot more safer and easier.\r\n Backuping your $XDG_DATA_HOME along with your files is enough \r\n (or just excluding $XDG_CACHE_HOME)\r\n- A lot easier to reset a default configuration if you want/need it (and \r\n without any risk to loose informations). Even for the software itself \r\n could choose to reset $XDG_CONFIG_HOME if needed.\r\n- Avoid some strange bugs that happens because you had a old version of \r\n some configuration file\r\n- A lot more of flexibility and portability because no path are hardcoded.", "updateAuthor": { "name": "eheintzmann", "key": "eheintzmann", "displayName": "Eric Heintzmann", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-05T05:28:03.000+0000", "updated": "2013-01-05T05:28:03.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }