{"action":"created","issue":{"url":"https://api.github.com/repos/julienXX/terminal-notifier/issues/222","repository_url":"https://api.github.com/repos/julienXX/terminal-notifier","labels_url":"https://api.github.com/repos/julienXX/terminal-notifier/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/julienXX/terminal-notifier/issues/222/comments","events_url":"https://api.github.com/repos/julienXX/terminal-notifier/issues/222/events","html_url":"https://github.com/julienXX/terminal-notifier/issues/222","id":231506507,"number":222,"title":"Missing notification after 1.8 upgrade","user":{"login":"sashkab","id":868842,"avatar_url":"https://avatars1.githubusercontent.com/u/868842?v=4","gravatar_id":"","url":"https://api.github.com/users/sashkab","html_url":"https://github.com/sashkab","followers_url":"https://api.github.com/users/sashkab/followers","following_url":"https://api.github.com/users/sashkab/following{/other_user}","gists_url":"https://api.github.com/users/sashkab/gists{/gist_id}","starred_url":"https://api.github.com/users/sashkab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sashkab/subscriptions","organizations_url":"https://api.github.com/users/sashkab/orgs","repos_url":"https://api.github.com/users/sashkab/repos","events_url":"https://api.github.com/users/sashkab/events{/privacy}","received_events_url":"https://api.github.com/users/sashkab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-05-26T02:02:23Z","updated_at":"2017-08-08T14:53:06Z","closed_at":null,"body":"# Please check everything that applies to your issue:\r\n- [x] I looked in closed issues and it has not already been answered\r\n- [x] My issue appeared with a terminal-notifier update\r\n- [x] I'm using a tool that uses terminal-notifier (guard-notifier, node-notifier...)\r\n\r\n# To help us debug your issue please include:\r\n- the macOS version you use: 10.12.5\r\n- terminal-notifier version: 1.8\r\n- how did you install terminal-notifier: homebrew\r\n- step-by-step reproduction instructions:\r\n\r\n I call it through the script, which is started via crontab. It calls terminal-notifier with following function. Calling it from Terminal has no differences -- message doesn't appear. It used to work, but around 1.8 time it was gone...\r\n\r\n```python\r\ndef notification(title='', subtitle='', message=''):¬\r\n    \"\"\" Uses terminal-notifier for showing notifications.\"\"\"¬\r\n    with open('/dev/null') as null:¬\r\n        r = check_output(['terminal-notifier', '-title', title,·¬\r\n                          '-subtitle', subtitle, '-message', message,¬\r\n                          '-dropdownLabel', 'Close', '-actions', 'Close,Install Updates',¬\r\n                        ], stdin=null)¬\r\n        return decode(r).strip()¬\r\n```\r\n\r\nThanks!\r\n"},"comment":{"url":"https://api.github.com/repos/julienXX/terminal-notifier/issues/comments/320980802","html_url":"https://github.com/julienXX/terminal-notifier/issues/222#issuecomment-320980802","issue_url":"https://api.github.com/repos/julienXX/terminal-notifier/issues/222","id":320980802,"user":{"login":"JayBrown","id":477431,"avatar_url":"https://avatars0.githubusercontent.com/u/477431?v=4","gravatar_id":"","url":"https://api.github.com/users/JayBrown","html_url":"https://github.com/JayBrown","followers_url":"https://api.github.com/users/JayBrown/followers","following_url":"https://api.github.com/users/JayBrown/following{/other_user}","gists_url":"https://api.github.com/users/JayBrown/gists{/gist_id}","starred_url":"https://api.github.com/users/JayBrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JayBrown/subscriptions","organizations_url":"https://api.github.com/users/JayBrown/orgs","repos_url":"https://api.github.com/users/JayBrown/repos","events_url":"https://api.github.com/users/JayBrown/events{/privacy}","received_events_url":"https://api.github.com/users/JayBrown/received_events","type":"User","site_admin":false},"created_at":"2017-08-08T14:53:06Z","updated_at":"2017-08-08T14:53:06Z","body":"Found a solution: use the above `getconf` command to find the `/db` directory, `cd` there, `ls`, and there should be the Notification Center database, just called \"db\". If it's there, run `sqlite3 db 'select * from app_info'`, then look for \"terminal-notifier\", \"julienxx\", and any entries that do not use the standard reverse URL scheme, e.g. for \"System Events\", if you used the `-sender \"System Events\"` option with `terminal-notifier`. The first db column is the ID assigned to the app. Then, for every relevant app-ID, you need to run `sqlite3 'delete from app_info where app_id = <ID>'` while replacing \"\\<ID\\>\" with the actual ID. Then run `sudo killall usernoted`, and then `terminal-notifier` works again. If necessary, you just need to change its settings again in the Notification Center preference pane.\r\n\r\nI'll monitor this in the next week, because I'm running the latest terminal-notifier from /usr/local/bin, but also still have some scripts that call the executable in the original .app bundle of previous terminal-notifier versions."}}
{"actor":{"display_login":"JayBrown"}}