{"action":"created","issue":{"url":"https://api.github.com/repos/supertuxkart/stk-code/issues/2414","labels_url":"https://api.github.com/repos/supertuxkart/stk-code/issues/2414/labels{/name}","comments_url":"https://api.github.com/repos/supertuxkart/stk-code/issues/2414/comments","events_url":"https://api.github.com/repos/supertuxkart/stk-code/issues/2414/events","html_url":"https://github.com/supertuxkart/stk-code/issues/2414","id":124217298,"number":2414,"title":"Making the individual highscore data into a shared among all users","user":{"login":"devnexen","id":4922778,"avatar_url":"https://avatars.githubusercontent.com/u/4922778?v=3","gravatar_id":"","url":"https://api.github.com/users/devnexen","html_url":"https://github.com/devnexen","followers_url":"https://api.github.com/users/devnexen/followers","following_url":"https://api.github.com/users/devnexen/following{/other_user}","gists_url":"https://api.github.com/users/devnexen/gists{/gist_id}","starred_url":"https://api.github.com/users/devnexen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devnexen/subscriptions","organizations_url":"https://api.github.com/users/devnexen/orgs","repos_url":"https://api.github.com/users/devnexen/repos","events_url":"https://api.github.com/users/devnexen/events{/privacy}","received_events_url":"https://api.github.com/users/devnexen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-29T14:18:13Z","updated_at":"2016-01-01T23:04:29Z","closed_at":null,"body":"Related todo task\r\n<code>\r\n     High scores should be shared between different users on a machine, e.g. /var/games\r\n        There are some problems with this approach (e.g. access to highscore files must be locked), so it's not as trivial as only changing the location of the highscore files. \r\n</code>\r\n\r\nCurrent status of the work\r\n- Only unixes systems are handled.\r\n- highscore file moved to /var/games/supertuxkart writable by everybody.\r\n- utfwriter class which is responsible of writing it underwent some changes for locking's sake.\r\n- mainly the C++ I/O stream converted to a plain C's one in order to use C locking function (fnctl for instance, can be changed to flock if prefered though).\r\n- once unix approach is validated, win32 oses would be handled (using _lock_file function maybe ? storing the highscore file inside Program Files\\Supertuxkart ... ?)"},"comment":{"url":"https://api.github.com/repos/supertuxkart/stk-code/issues/comments/168347268","html_url":"https://github.com/supertuxkart/stk-code/issues/2414#issuecomment-168347268","issue_url":"https://api.github.com/repos/supertuxkart/stk-code/issues/2414","id":168347268,"user":{"login":"Benau","id":3252341,"avatar_url":"https://avatars.githubusercontent.com/u/3252341?v=3","gravatar_id":"","url":"https://api.github.com/users/Benau","html_url":"https://github.com/Benau","followers_url":"https://api.github.com/users/Benau/followers","following_url":"https://api.github.com/users/Benau/following{/other_user}","gists_url":"https://api.github.com/users/Benau/gists{/gist_id}","starred_url":"https://api.github.com/users/Benau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Benau/subscriptions","organizations_url":"https://api.github.com/users/Benau/orgs","repos_url":"https://api.github.com/users/Benau/repos","events_url":"https://api.github.com/users/Benau/events{/privacy}","received_events_url":"https://api.github.com/users/Benau/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T23:04:29Z","updated_at":"2016-01-01T23:04:29Z","body":"Not sure if permission is required to be handled too (what account to use for writing highscore?)"}}