{"action":"created","issue":{"url":"https://api.github.com/repos/libretro/RetroArch/issues/4473","repository_url":"https://api.github.com/repos/libretro/RetroArch","labels_url":"https://api.github.com/repos/libretro/RetroArch/issues/4473/labels{/name}","comments_url":"https://api.github.com/repos/libretro/RetroArch/issues/4473/comments","events_url":"https://api.github.com/repos/libretro/RetroArch/issues/4473/events","html_url":"https://github.com/libretro/RetroArch/issues/4473","id":202333420,"number":4473,"title":"No-content cores do not always save correctly","user":{"login":"orbea","id":4204285,"avatar_url":"https://avatars.githubusercontent.com/u/4204285?v=3","gravatar_id":"","url":"https://api.github.com/users/orbea","html_url":"https://github.com/orbea","followers_url":"https://api.github.com/users/orbea/followers","following_url":"https://api.github.com/users/orbea/following{/other_user}","gists_url":"https://api.github.com/users/orbea/gists{/gist_id}","starred_url":"https://api.github.com/users/orbea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orbea/subscriptions","organizations_url":"https://api.github.com/users/orbea/orgs","repos_url":"https://api.github.com/users/orbea/repos","events_url":"https://api.github.com/users/orbea/events{/privacy}","received_events_url":"https://api.github.com/users/orbea/received_events","type":"User","site_admin":false},"labels":[{"id":253577597,"url":"https://api.github.com/repos/libretro/RetroArch/labels/bug:%20minor","name":"bug: minor","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-21T19:00:45Z","updated_at":"2017-01-29T04:24:11Z","closed_at":null,"body":"## Description\r\n\r\nRetroArch has problems saving no-content cores under the following conditions.\r\n\r\n1. The save / system directory is read-only.\r\n2. The option 'Sort Saves In Folders' is used (i.e. 2048 tried to save in the GLupeN64 directory)\r\n\r\nThis is especially problematic for any distros trying to package RetroArch where it is standard to install cores to a read-only directory (i.e. `/usr/lib/libretro/`).\r\n\r\n### Expected behavior\r\n\r\nI am unsure what the best behavior is, but here are some ideas.\r\n\r\n1. If the save and system directories are read-only then fall back to directories that are writable, for example in `~/.config/retroarch/saves` and `~/.config/retroarch/system`.\r\n2. Make sure all content-less cores use the system directory instead of save directory and allow anyone installing to a read only directory to set the system directory to `~/.config/retroarch/system` for example. (Can `/etc/retroarch.cfg` properly do this already?)\r\n\r\n### Steps to reproduce the bug\r\n\r\n1. Install 2048 to a read-only directory.\r\n2. Run the core: `retroarch -L 2048_libretro.so`\r\n3. It will not save unless the save directory is set and if `Sort Saves In Folders` is used it will do so in the wrong location.\r\n\r\n### Bisect Results\r\n\r\nThis is an old problem, see https://github.com/libretro/libretro-2048/issues/4.\r\n\r\n### Version/Commit\r\n\r\n`RetroArch-2017.01.19_de4e3cc77_master-x86_64-1_git`\r\n\r\n### Environment information\r\n\r\n- OS: `Slackware64-current`\r\n"},"comment":{"url":"https://api.github.com/repos/libretro/RetroArch/issues/comments/275893095","html_url":"https://github.com/libretro/RetroArch/issues/4473#issuecomment-275893095","issue_url":"https://api.github.com/repos/libretro/RetroArch/issues/4473","id":275893095,"user":{"login":"orbea","id":4204285,"avatar_url":"https://avatars.githubusercontent.com/u/4204285?v=3","gravatar_id":"","url":"https://api.github.com/users/orbea","html_url":"https://github.com/orbea","followers_url":"https://api.github.com/users/orbea/followers","following_url":"https://api.github.com/users/orbea/following{/other_user}","gists_url":"https://api.github.com/users/orbea/gists{/gist_id}","starred_url":"https://api.github.com/users/orbea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orbea/subscriptions","organizations_url":"https://api.github.com/users/orbea/orgs","repos_url":"https://api.github.com/users/orbea/repos","events_url":"https://api.github.com/users/orbea/events{/privacy}","received_events_url":"https://api.github.com/users/orbea/received_events","type":"User","site_admin":false},"created_at":"2017-01-29T04:24:11Z","updated_at":"2017-01-29T04:24:11Z","body":"Thanks to commit https://github.com/libretro/RetroArch/commit/ca926f0a50e5759380cdc89b8603224de944271c it will save correctly if the save dir is set, but it will still have problems if it tries to use the content dir while not having write permissions."}}
{"actor":{"display_login":"orbea"}}