{"action":"created","issue":{"url":"https://api.github.com/repos/muammar/mkchromecast/issues/29","repository_url":"https://api.github.com/repos/muammar/mkchromecast","labels_url":"https://api.github.com/repos/muammar/mkchromecast/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/muammar/mkchromecast/issues/29/comments","events_url":"https://api.github.com/repos/muammar/mkchromecast/issues/29/events","html_url":"https://github.com/muammar/mkchromecast/issues/29","id":190526955,"number":29,"title":"Tray mode doesn't find device, crashes when searching, device perms issue? - KDE, Ubuntu 16.04.1","user":{"login":"chuqster","id":22434588,"avatar_url":"https://avatars.githubusercontent.com/u/22434588?v=3","gravatar_id":"","url":"https://api.github.com/users/chuqster","html_url":"https://github.com/chuqster","followers_url":"https://api.github.com/users/chuqster/followers","following_url":"https://api.github.com/users/chuqster/following{/other_user}","gists_url":"https://api.github.com/users/chuqster/gists{/gist_id}","starred_url":"https://api.github.com/users/chuqster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuqster/subscriptions","organizations_url":"https://api.github.com/users/chuqster/orgs","repos_url":"https://api.github.com/users/chuqster/repos","events_url":"https://api.github.com/users/chuqster/events{/privacy}","received_events_url":"https://api.github.com/users/chuqster/received_events","type":"User","site_admin":false},"labels":[{"id":344217803,"url":"https://api.github.com/repos/muammar/mkchromecast/labels/bug","name":"bug","color":"fc2929","default":true},{"id":485102725,"url":"https://api.github.com/repos/muammar/mkchromecast/labels/debian%20packaging","name":"debian packaging","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-11-19T23:10:37Z","updated_at":"2016-11-21T01:49:23Z","closed_at":null,"body":"Hello,\r\n\r\nSo running from a terminal runs perfectly fine and chromecast devices show up in pavucontrol and everything works. In tray mode the chromecast device is never found and running a search will crash. OS is Kubuntu 16.04.1 and I verified all dependencies were met by your specs. Running in debug mode I got the following at search [see below]. Now if I run the same thing under sudo it works. Well, kind of. The Chromecast audio device isn't available in pavucontrol for obvious reasons (ran as root) but a search will find the device, it shows up in the GUI, can be selected and connected to.\r\n\r\ncharles@muadib:~$ mkchromecast --debug -t\r\n('ALSA device name:', None)\r\n('Google Cast name:', None)\r\n('backends: ', ['ffmpeg', 'avconv', 'parec'])\r\n('ALSA device name:', None)\r\n('Google Cast name:', None)\r\n('backends: ', ['ffmpeg', 'avconv', 'parec'])\r\nUSER =charles\r\nPATH =/home/charles/bin:/home/charles/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin\r\nmkchromecast v0.3.6\r\n(':::audio::: chunk_size: ', 1024)\r\n:::audio::: tray =True\r\nConfiguration file exist\r\nUsing defaults set there\r\n('ffmpeg', 'aac', '192', '44100')\r\n:::audio::: Program /usr/bin/ffmpeg found in /usr/bin/ffmpeg\r\n:::audio::: backend dictionary {'/usr/bin/ffmpeg': 'ffmpeg', 'ffmpeg': 'ffmpeg'}\r\nSelected backend: /usr/bin/ffmpeg\r\nSelected audio codec: aac\r\nDefault bitrate used: 192k\r\nDefault sample rate used: 44100Hz\r\n:::audio::: command ['/usr/bin/ffmpeg', '-ac', '2', '-ar', '44100', '-f', 'pulse', '-i', 'mkchromecast.monitor', '-acodec', 'aac', '-f', 'adts', '-ac', '2', '-ar', '44100', '-b:a', '192k', '-cutoff', '18000', 'pipe:']\r\n:::cast::: sockets method 192.168.105.153\r\nConfiguration file exist\r\nUsing defaults set there\r\n(':::systray::: Screen resolution: ', 1920, 1080)\r\n:::systray::: High-DPI screen detected...\r\nConfiguration file exist\r\nUsing defaults set there\r\nTraceback (most recent call last):\r\n  File \"/usr/share/mkchromecast/mkchromecast/systray.py\", line 259, in search_cast\r\n    self.search_notification()\r\n  File \"/usr/share/mkchromecast/mkchromecast/systray.py\", line 878, in search_notification\r\n    gi.require_version('Notify', '0.7')\r\n  File \"/usr/lib/python2.7/dist-packages/gi/__init__.py\", line 102, in require_version\r\n    raise ValueError('Namespace %s not available' % namespace)\r\nValueError: Namespace Notify not available\r\nAborted (core dumped)"},"comment":{"url":"https://api.github.com/repos/muammar/mkchromecast/issues/comments/261824294","html_url":"https://github.com/muammar/mkchromecast/issues/29#issuecomment-261824294","issue_url":"https://api.github.com/repos/muammar/mkchromecast/issues/29","id":261824294,"user":{"login":"muammar","id":954209,"avatar_url":"https://avatars.githubusercontent.com/u/954209?v=3","gravatar_id":"","url":"https://api.github.com/users/muammar","html_url":"https://github.com/muammar","followers_url":"https://api.github.com/users/muammar/followers","following_url":"https://api.github.com/users/muammar/following{/other_user}","gists_url":"https://api.github.com/users/muammar/gists{/gist_id}","starred_url":"https://api.github.com/users/muammar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muammar/subscriptions","organizations_url":"https://api.github.com/users/muammar/orgs","repos_url":"https://api.github.com/users/muammar/repos","events_url":"https://api.github.com/users/muammar/events{/privacy}","received_events_url":"https://api.github.com/users/muammar/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T01:49:23Z","updated_at":"2016-11-21T01:49:23Z","body":"Just out of curiosity, could you delete `$HOME/.config/mkchromecast`, and try to run again without sudo?. As a regular user, it should work. I haven't work yet in adding more verbosity. It is something I have to improve. Thanks again for your feedback!."}}
{"actor":{"display_login":"muammar"}}