{"action":"opened","issue":{"url":"https://api.github.com/repos/autokey/autokey/issues/124","repository_url":"https://api.github.com/repos/autokey/autokey","labels_url":"https://api.github.com/repos/autokey/autokey/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/autokey/autokey/issues/124/comments","events_url":"https://api.github.com/repos/autokey/autokey/issues/124/events","html_url":"https://github.com/autokey/autokey/issues/124","id":302028105,"number":124,"title":"prblems with parameters to dialog.save_file","user":{"login":"jack99999","id":6160136,"avatar_url":"https://avatars2.githubusercontent.com/u/6160136?v=4","gravatar_id":"","url":"https://api.github.com/users/jack99999","html_url":"https://github.com/jack99999","followers_url":"https://api.github.com/users/jack99999/followers","following_url":"https://api.github.com/users/jack99999/following{/other_user}","gists_url":"https://api.github.com/users/jack99999/gists{/gist_id}","starred_url":"https://api.github.com/users/jack99999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jack99999/subscriptions","organizations_url":"https://api.github.com/users/jack99999/orgs","repos_url":"https://api.github.com/users/jack99999/repos","events_url":"https://api.github.com/users/jack99999/events{/privacy}","received_events_url":"https://api.github.com/users/jack99999/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-03T20:07:04Z","updated_at":"2018-03-03T20:07:04Z","closed_at":null,"author_association":"NONE","body":"## Classification: Bug\r\n\r\n(Pick one of: Bug, Crash/Hang/Data Loss, Performance, UI/Usability, Feature (New), Enhancement)\r\n\r\n## Reproducibility: Always\r\n\r\n(Pick one of: Always, Sometimes, Rarely, Unable, I Didn't Try)\r\n\r\n## Summary\r\nvarious problems with parameters to dialog.save_file. sometimes dialog fails completely, sometimes it doesn't work as expected.\r\n\r\n## Steps to Reproduce\r\n\r\nMint 18.3\r\nAutokey 0.93.10\r\nZenity 3.18.1.1 \r\nPython 3.5.2 \r\n\r\n\r\n`retCode, fName = dialog.save_file(title=\"Save As\")`\r\n`### this works`\r\n\r\n`retCode, dirName = dialog.choose_directory(title='Select Directory', initialDir='/tmp/')`\r\n`### dialog is displayed but shows ~ directory rather than /tmp`\r\n\r\n`retCode, fName = dialog.save_file(title='Save As',fileTypes='*|All Files')`\r\n`### dialog fails with exit code 255`\r\n\r\n`retCode, fName = dialog.save_file(title='Save file', rememberAs='1234')`\r\n`### dialog fails with exit code 255`\r\n\r\n`retCode, fName = dialog.save_file(title='Save file', rememberAs=None)`\r\n`### dialog fails:`\r\n`### Traceback (most recent call last):`\r\n`###   File \"/usr/lib/python3/dist-packages/autokey/service.py\", line 460, in execute`\r\n`###     exec(script.code, scope)`\r\n`###   File \"<string>\", line 13, in <module>`\r\n`###   File \"/usr/lib/python3/dist-packages/autokey/scripting.py\", line 615, in save_file`\r\n`###     return self.__runZenity(title, [\"--file-selection\", \"--save\"], kwargs)`\r\n`###   File \"/usr/lib/python3/dist-packages/autokey/scripting.py\", line 464, in __runZenity`\r\n`###     with subprocess.Popen([\"zenity\", \"--title\", title] + args, stdout=subprocess.PIPE) as p:`\r\n`###   File \"/usr/lib/python3.5/subprocess.py\", line 947, in __init__`\r\n`###     restore_signals, start_new_session)`\r\n`###   File \"/usr/lib/python3.5/subprocess.py\", line 1490, in _execute_child`\r\n`###     restore_signals, start_new_session, preexec_fn)`\r\n`### TypeError: Can't convert 'NoneType' object to str implicitly`\r\n\r\n\r\n\r\n## Expected Results\r\n\r\n\r\n## Actual Results\r\n\r\n## Version\r\n\r\nAutoKey-Py3 version 0.93.10\r\nMint 18.3\r\nAutokey 0.93.10\r\nZenity 3.18.1.1 \r\nPython 3.5.2 \r\n\r\nInstalled via: (PPA, pip, …). can't remember.\r\n\r\nDistro: Mint 18.3\r\n\r\n## Notes\r\n\r\nsee Steps to Reproduce section."}}
{"actor":{"display_login":"jack99999"}}