{"action":"created","issue":{"url":"https://api.github.com/repos/atom/electron/issues/1541","labels_url":"https://api.github.com/repos/atom/electron/issues/1541/labels{/name}","comments_url":"https://api.github.com/repos/atom/electron/issues/1541/comments","events_url":"https://api.github.com/repos/atom/electron/issues/1541/events","html_url":"https://github.com/atom/electron/issues/1541","id":72387451,"number":1541,"title":"dialog.showSaveDialog cannot set the default filename","user":{"login":"lealife","id":1699428,"avatar_url":"https://avatars.githubusercontent.com/u/1699428?v=3","gravatar_id":"","url":"https://api.github.com/users/lealife","html_url":"https://github.com/lealife","followers_url":"https://api.github.com/users/lealife/followers","following_url":"https://api.github.com/users/lealife/following{/other_user}","gists_url":"https://api.github.com/users/lealife/gists{/gist_id}","starred_url":"https://api.github.com/users/lealife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lealife/subscriptions","organizations_url":"https://api.github.com/users/lealife/orgs","repos_url":"https://api.github.com/users/lealife/repos","events_url":"https://api.github.com/users/lealife/events{/privacy}","received_events_url":"https://api.github.com/users/lealife/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-01T08:52:20Z","updated_at":"2015-05-01T09:47:34Z","closed_at":"2015-05-01T08:58:21Z","body":"```\r\ndialog.showSaveDialog({title:\"Untitled.png\"}, function(targetPath) {\r\n});\r\n```\r\n![image](https://cloud.githubusercontent.com/assets/1699428/7428374/332d8ed6-f022-11e4-8806-3d25442c864d.png)\r\n\r\nmac os x Yosemite, electron v0.25.2"},"comment":{"url":"https://api.github.com/repos/atom/electron/issues/comments/98086467","html_url":"https://github.com/atom/electron/issues/1541#issuecomment-98086467","issue_url":"https://api.github.com/repos/atom/electron/issues/1541","id":98086467,"user":{"login":"ThorstenHans","id":357884,"avatar_url":"https://avatars.githubusercontent.com/u/357884?v=3","gravatar_id":"","url":"https://api.github.com/users/ThorstenHans","html_url":"https://github.com/ThorstenHans","followers_url":"https://api.github.com/users/ThorstenHans/followers","following_url":"https://api.github.com/users/ThorstenHans/following{/other_user}","gists_url":"https://api.github.com/users/ThorstenHans/gists{/gist_id}","starred_url":"https://api.github.com/users/ThorstenHans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThorstenHans/subscriptions","organizations_url":"https://api.github.com/users/ThorstenHans/orgs","repos_url":"https://api.github.com/users/ThorstenHans/repos","events_url":"https://api.github.com/users/ThorstenHans/events{/privacy}","received_events_url":"https://api.github.com/users/ThorstenHans/received_events","type":"User","site_admin":false},"created_at":"2015-05-01T09:47:34Z","updated_at":"2015-05-01T09:47:34Z","body":"works for me when passing options like this\r\n\r\n````\r\ndialog.showSaveDialog(mainWindow, {\r\n    title: 'foo',\r\n    defaultPath: '~/foo.xml'\r\n  }, function(result){\r\n});\r\n````"}}