{"action":"created","issue":{"url":"https://api.github.com/repos/kgshank/gse-sound-output-device-chooser/issues/7","repository_url":"https://api.github.com/repos/kgshank/gse-sound-output-device-chooser","labels_url":"https://api.github.com/repos/kgshank/gse-sound-output-device-chooser/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/kgshank/gse-sound-output-device-chooser/issues/7/comments","events_url":"https://api.github.com/repos/kgshank/gse-sound-output-device-chooser/issues/7/events","html_url":"https://github.com/kgshank/gse-sound-output-device-chooser/issues/7","id":132859178,"number":7,"title":"The switcher disappears after unlocking the screen","user":{"login":"anassahmed","id":928614,"avatar_url":"https://avatars.githubusercontent.com/u/928614?v=3","gravatar_id":"","url":"https://api.github.com/users/anassahmed","html_url":"https://github.com/anassahmed","followers_url":"https://api.github.com/users/anassahmed/followers","following_url":"https://api.github.com/users/anassahmed/following{/other_user}","gists_url":"https://api.github.com/users/anassahmed/gists{/gist_id}","starred_url":"https://api.github.com/users/anassahmed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anassahmed/subscriptions","organizations_url":"https://api.github.com/users/anassahmed/orgs","repos_url":"https://api.github.com/users/anassahmed/repos","events_url":"https://api.github.com/users/anassahmed/events{/privacy}","received_events_url":"https://api.github.com/users/anassahmed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-11T00:27:20Z","updated_at":"2016-02-16T03:35:26Z","closed_at":null,"body":"I notice that the switcher is working well after the first login and after restarting the shell (Alt + F2 then 'r') but when I lock the screen, then unlock it again, I see the switcher disappears from the gnome shell menu.\r\n\r\nI've stumbled upon the following lines from the Journal:\r\n```\r\nFeb 11 02:18:17 anass-galago gnome-shell.desktop[2505]: Gjs-Message: JS LOG: Max Id:11\r\nFeb 11 02:18:17 anass-galago gnome-shell.desktop[2505]: Gjs-Message: JS LOG: Profiles not defined\r\nFeb 11 02:18:17 anass-galago gnome-shell.desktop[2505]: Gjs-Message: JS LOG: analog-output-speaker found\r\nFeb 11 02:18:17 anass-galago gnome-shell.desktop[2505]: Gjs-Message: JS LOG: Port Found!!!\r\nFeb 11 02:18:17 anass-galago gnome-shell.desktop[2505]: Gjs-Message: JS LOG: Added: 5\r\nFeb 11 02:18:17 anass-galago gnome-shell.desktop[2505]: Gjs-Message: JS LOG: Profiles not defined\r\nFeb 11 02:18:17 anass-galago gnome-shell.desktop[2505]: Gjs-Message: JS LOG: headset-output not found\r\nFeb 11 02:18:17 anass-galago gnome-shell.desktop[2505]: Gjs-Message: JS LOG: card_index=0\r\nFeb 11 02:18:17 anass-galago gnome-shell.desktop[2505]: Gjs-Message: JS LOG: card_index=1\r\nFeb 11 02:18:17 anass-galago gnome-shell.desktop[2505]: Gjs-Message: JS LOG: card_index=4\r\nFeb 11 02:18:17 anass-galago gnome-shell.desktop[2505]: (gnome-shell:2505): Gjs-WARNING **: JS ERROR: TypeError: cards[cardIndex] is undefined\r\nFeb 11 02:18:17 anass-galago gnome-shell.desktop[2505]: parseOutput@/home/anass/.local/share/gnome-shell/extensions/sound-output-device-chooser@kgshank.net/convenience.js:150\r\nFeb 11 02:18:17 anass-galago gnome-shell.desktop[2505]: refreshCards@/home/anass/.local/share/gnome-shell/extensions/sound-output-device-chooser@kgshank.net/convenience.js:100\r\nFeb 11 02:18:17 anass-galago gnome-shell.desktop[2505]: getProfiles@/home/anass/.local/share/gnome-shell/extensions/sound-output-device-chooser@kgshank.net/convenience.js:67\r\nFeb 11 02:18:17 anass-galago gnome-shell.desktop[2505]: SoundOutputDeviceChooser<._outputAdded@/home/anass/.local/share/gnome-shell/extensions/sound-output-device-chooser@kgshank.net/extension.js:139\r\nFeb 11 02:18:17 anass-galago gnome-shell.desktop[2505]: wrapper@resource:///org/gnome/gjs/modules/lang.js:169\r\nFeb 11 02:18:17 anass-galago gnome-shell.desktop[2505]: SoundOutputDeviceChooser<._lateInit@/home/anass/.local/share/gnome-shell/extensions/sound-output-device-chooser@kgshank.net/extension.js:85\r\nFeb 11 02:18:17 anass-galago gnome-shell.desktop[2505]: wrapper@resource:///org/gnome/gjs/modules/lang.js:169\r\nFeb 11 02:18:18 anass-galago gnome-shell.desktop[2505]: Gjs-Message: JS LOG: profile changed: a2dp_sink\r\n```"},"comment":{"url":"https://api.github.com/repos/kgshank/gse-sound-output-device-chooser/issues/comments/184499742","html_url":"https://github.com/kgshank/gse-sound-output-device-chooser/issues/7#issuecomment-184499742","issue_url":"https://api.github.com/repos/kgshank/gse-sound-output-device-chooser/issues/7","id":184499742,"user":{"login":"kgshank","id":10281027,"avatar_url":"https://avatars.githubusercontent.com/u/10281027?v=3","gravatar_id":"","url":"https://api.github.com/users/kgshank","html_url":"https://github.com/kgshank","followers_url":"https://api.github.com/users/kgshank/followers","following_url":"https://api.github.com/users/kgshank/following{/other_user}","gists_url":"https://api.github.com/users/kgshank/gists{/gist_id}","starred_url":"https://api.github.com/users/kgshank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgshank/subscriptions","organizations_url":"https://api.github.com/users/kgshank/orgs","repos_url":"https://api.github.com/users/kgshank/repos","events_url":"https://api.github.com/users/kgshank/events{/privacy}","received_events_url":"https://api.github.com/users/kgshank/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T03:35:26Z","updated_at":"2016-02-16T03:35:26Z","body":"Please post the output of the command when the switcher disappears\r\n\r\n`pactl list cards`"}}