{"action":"created","issue":{"url":"https://api.github.com/repos/demonsaw/Issues/issues/27","repository_url":"https://api.github.com/repos/demonsaw/Issues","labels_url":"https://api.github.com/repos/demonsaw/Issues/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/demonsaw/Issues/issues/27/comments","events_url":"https://api.github.com/repos/demonsaw/Issues/issues/27/events","html_url":"https://github.com/demonsaw/Issues/issues/27","id":181344812,"number":27,"title":"Demonsaw 3.1 for OSX Does Not Perserve Settings After Quit","user":{"login":"silvether","id":19334356,"avatar_url":"https://avatars.githubusercontent.com/u/19334356?v=3","gravatar_id":"","url":"https://api.github.com/users/silvether","html_url":"https://github.com/silvether","followers_url":"https://api.github.com/users/silvether/followers","following_url":"https://api.github.com/users/silvether/following{/other_user}","gists_url":"https://api.github.com/users/silvether/gists{/gist_id}","starred_url":"https://api.github.com/users/silvether/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silvether/subscriptions","organizations_url":"https://api.github.com/users/silvether/orgs","repos_url":"https://api.github.com/users/silvether/repos","events_url":"https://api.github.com/users/silvether/events{/privacy}","received_events_url":"https://api.github.com/users/silvether/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-06T07:42:06Z","updated_at":"2016-10-07T04:13:01Z","closed_at":null,"body":"**OS:** MacOS Sierra 10.12 (16A323)\r\n**Demonsaw Version:** 64-bit OSX 3.1\r\n\r\n**Expected Behaviour:**\r\nWhen the save icon is initiated, Demonsaw saves current client settings to the .TOML and settings persist across restarts of the application.\r\n\r\n**Current Behaviour:**\r\nWhen the save icon is initiated, Demonsaw saves the current client settings, but when the app is exited, **the TOML file is overwritten to a default blank state.**\r\n\r\n**Reproduction Steps:**\r\n\r\n**Step 1:** Launch Demonsaw from within the original folder that is found in the [version 3.1 .tar.gz archive](http://demonsaw.com/download/3.1.0/demonsaw_osx_64.tar.gz)\r\n\r\n![screen shot 2016-10-06 at 1 24 06 am](https://cloud.githubusercontent.com/assets/19334356/19143932/0c20cab8-8b64-11e6-9577-588b4f4dc197.png)\r\n\r\n**Step 2:** Configure a client\r\n\r\n<img width=\"592\" alt=\"screen shot 2016-10-06 at 1 24 17 am\" src=\"https://cloud.githubusercontent.com/assets/19334356/19143937/14e11bd0-8b64-11e6-897c-bfaf09afbffb.png\">\r\n\r\n\r\n**Step 3:** Press the save icon at the top left of Demonsaw to save the .TOML\r\n\r\n<img width=\"113\" alt=\"screen shot 2016-10-06 at 1 31 05 am\" src=\"https://cloud.githubusercontent.com/assets/19334356/19144026/91dca230-8b64-11e6-884f-097912ee6283.png\">\r\n\r\n\r\n**Step 4:** Open the .TOML in a text editor such as Sublime and note that client configuration is present\r\n\r\n<img width=\"868\" alt=\"screen shot 2016-10-06 at 1 25 36 am\" src=\"https://cloud.githubusercontent.com/assets/19334356/19143972/44ffcdac-8b64-11e6-8aa7-edcff8a7635e.png\">\r\n\r\n**Step 5:** Exit Demonsaw\r\n\r\n<img width=\"211\" alt=\"screen shot 2016-10-06 at 1 26 05 am\" src=\"https://cloud.githubusercontent.com/assets/19334356/19143965/3c661bec-8b64-11e6-82ff-acc540261144.png\">\r\n\r\n**Step 6:** Note the now empty/default .TOML file, (the timestamp will confirm a change is committed upon quit)\r\n\r\n<img width=\"868\" alt=\"screen shot 2016-10-06 at 1 26 15 am\" src=\"https://cloud.githubusercontent.com/assets/19334356/19143981/4f575b58-8b64-11e6-964f-d03d97bb28ba.png\">\r\n\r\n\r\n**Step 7:** Launch Demonsaw again from the same folder location to confirm that the vanilla .TOML file triggers the configuration dialogue. \r\n\r\n<img width=\"592\" alt=\"screen shot 2016-10-06 at 1 24 17 am\" src=\"https://cloud.githubusercontent.com/assets/19334356/19143986/549784e4-8b64-11e6-820b-791c25c961af.png\">\r\n\r\n**Additional Observations & Feedback:**\r\n\r\n**Most Important:** The ability to save a client configuration is a core feature of Demonsaw and should be thoroughly tested before rtw. The current inability to persist settings across stop/starts **makes the OSX client unusable**, especially for groups that require unique configuration values.\r\n\r\n\r\n**Less Important:** The vast majority of OSX applications do not require the .app to be rooted in a folder containing settings or configurations. It is common practice to allow the .app to reside in the Applications folder independently, while settings are stored in ~/Library, commonly ~/Library/Application Support/[NAME OF APP or ORG HERE]/ config files. This could even be accomplished by **creating a visible Demonsaw folder in the 'Documents' folder** where CSS and the .TOML could reside.(I find this more appropriate than ~/Library which is hidden by default)\r\n\r\n_**I can understand how keeping configs in a folder and not scattering them around the OS, folders(hidden or visible) may be easier from a development perspective, but the current behaviour is confusing and obtuse to the average MacOS/OSX user._\r\n\r\nPlease let me know if I can provide any further clarification. I am also more than happy to assist in additional testing.\r\n\r\nw/ love,\r\n\r\n- silvether\r\n\r\n__\r\n@eijah @dev247 @AmbassadorP @camgaertner @Havatra \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/demonsaw/Issues/issues/comments/252149086","html_url":"https://github.com/demonsaw/Issues/issues/27#issuecomment-252149086","issue_url":"https://api.github.com/repos/demonsaw/Issues/issues/27","id":252149086,"user":{"login":"silvether","id":19334356,"avatar_url":"https://avatars.githubusercontent.com/u/19334356?v=3","gravatar_id":"","url":"https://api.github.com/users/silvether","html_url":"https://github.com/silvether","followers_url":"https://api.github.com/users/silvether/followers","following_url":"https://api.github.com/users/silvether/following{/other_user}","gists_url":"https://api.github.com/users/silvether/gists{/gist_id}","starred_url":"https://api.github.com/users/silvether/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silvether/subscriptions","organizations_url":"https://api.github.com/users/silvether/orgs","repos_url":"https://api.github.com/users/silvether/repos","events_url":"https://api.github.com/users/silvether/events{/privacy}","received_events_url":"https://api.github.com/users/silvether/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T04:13:01Z","updated_at":"2016-10-07T04:13:01Z","body":"So after further testing, I was able to get Demonsaw to keep the configuration and not overwrite it when closed. Apparently there are two separate behaviours depending on how the app is closed?\r\n\r\n1. Closing the app with the red X\r\n\r\n<img width=\"76\" alt=\"screen shot 2016-10-06 at 10 07 22 pm\" src=\"https://cloud.githubusercontent.com/assets/19334356/19178596/55d56d32-8c11-11e6-8814-f5c94787ed0d.png\">\r\n\r\n**This method preserves the TOML as expected.**\r\n\r\n\r\n2. Closing the app with the Quit option in the menu(Command - Q shortcut)\r\n\r\n<img width=\"211\" alt=\"screen shot 2016-10-06 at 10 07 33 pm\" src=\"https://cloud.githubusercontent.com/assets/19334356/19178612/86f46f9e-8c11-11e6-92e4-dfbb7af3febc.png\">\r\n\r\n**This method resets the TOML to default on close. Sad panda..**.\r\n\r\n\r\nMethod 2 is the most common method of quitting an application in OSX, and is the reason I overlooked it as a potential variable. We should work to ensure both methods yield the same outcome.\r\n\r\nChanging the title of this bug to better reflect the current situation.\r\n\r\n"}}
{"actor":{"display_login":"silvether"}}