{"action":"created","issue":{"url":"https://api.github.com/repos/servo/servo/issues/5582","labels_url":"https://api.github.com/repos/servo/servo/issues/5582/labels{/name}","comments_url":"https://api.github.com/repos/servo/servo/issues/5582/comments","events_url":"https://api.github.com/repos/servo/servo/issues/5582/events","html_url":"https://github.com/servo/servo/issues/5582","id":67001021,"number":5582,"title":"Display a notification after a long `mach build` command","user":{"login":"mbrubeck","id":5920,"avatar_url":"https://avatars.githubusercontent.com/u/5920?v=3","gravatar_id":"","url":"https://api.github.com/users/mbrubeck","html_url":"https://github.com/mbrubeck","followers_url":"https://api.github.com/users/mbrubeck/followers","following_url":"https://api.github.com/users/mbrubeck/following{/other_user}","gists_url":"https://api.github.com/users/mbrubeck/gists{/gist_id}","starred_url":"https://api.github.com/users/mbrubeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbrubeck/subscriptions","organizations_url":"https://api.github.com/users/mbrubeck/orgs","repos_url":"https://api.github.com/users/mbrubeck/repos","events_url":"https://api.github.com/users/mbrubeck/events{/privacy}","received_events_url":"https://api.github.com/users/mbrubeck/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/servo/servo/labels/A-mach","name":"A-mach","color":"d7e102"},{"url":"https://api.github.com/repos/servo/servo/labels/C-assigned","name":"C-assigned","color":"02d7e1"},{"url":"https://api.github.com/repos/servo/servo/labels/E-easy","name":"E-easy","color":"02e10c"},{"url":"https://api.github.com/repos/servo/servo/labels/I-enhancement","name":"I-enhancement","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-07T22:06:32Z","updated_at":"2015-04-13T16:22:44Z","closed_at":null,"body":"The Firefox build system has [this code](https://hg.mozilla.org/mozilla-central/file/ab0490972e1e/python/mozbuild/mozbuild/mach_commands.py#l424) to display a system notification popup when the build finishes (if the duration was greater than some threshold).  It'd be great to copy/adapt this for our own [build command](https://github.com/servo/servo/blob/master/python/servo/build_commands.py) and other long-running commands."},"comment":{"url":"https://api.github.com/repos/servo/servo/issues/comments/92416187","html_url":"https://github.com/servo/servo/issues/5582#issuecomment-92416187","issue_url":"https://api.github.com/repos/servo/servo/issues/5582","id":92416187,"user":{"login":"dhananjay92","id":6269279,"avatar_url":"https://avatars.githubusercontent.com/u/6269279?v=3","gravatar_id":"","url":"https://api.github.com/users/dhananjay92","html_url":"https://github.com/dhananjay92","followers_url":"https://api.github.com/users/dhananjay92/followers","following_url":"https://api.github.com/users/dhananjay92/following{/other_user}","gists_url":"https://api.github.com/users/dhananjay92/gists{/gist_id}","starred_url":"https://api.github.com/users/dhananjay92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhananjay92/subscriptions","organizations_url":"https://api.github.com/users/dhananjay92/orgs","repos_url":"https://api.github.com/users/dhananjay92/repos","events_url":"https://api.github.com/users/dhananjay92/events{/privacy}","received_events_url":"https://api.github.com/users/dhananjay92/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T16:22:44Z","updated_at":"2015-04-13T16:22:44Z","body":"Done for windows as well. I followed the same `FLASHWINDOW` code from Mozilla's `mach_commands.py` script.\r\n\r\nOnce the build is finished the Terminal blinks in the taskbar as shown below in screenshot.\r\n![screenshot_windowflash](https://cloud.githubusercontent.com/assets/6269279/7119929/682787ee-e1be-11e4-9fbe-443c88794d07.png)\r\n\r\nIs this okay? If so, I will create a PR."}}