ogra1 / zoom-snap

75 stars 13 forks source link

alsa-launch: line 28: yad: command not found #63

Closed graingert closed 3 years ago

graingert commented 3 years ago

when trying to start zoom-client I get an endless repeating loop of:

/snap/zoom-client/122/snap/command-chain/alsa-launch: line 28: yad: command not found
Testing for ALSA permissions...
/snap/zoom-client/122/snap/command-chain/alsa-launch: line 28: yad: command not found
Testing for ALSA permissions...
/snap/zoom-client/122/snap/command-chain/alsa-launch: line 28: yad: command not found
Testing for ALSA permissions...
/snap/zoom-client/122/snap/command-chain/alsa-launch: line 28: yad: command not found
Testing for ALSA permissions...
/snap/zoom-client/122/snap/command-chain/alsa-launch: line 28: yad: command not found
Testing for ALSA permissions...
/snap/zoom-client/122/snap/command-chain/alsa-launch: line 28: yad: command not found
Testing for ALSA permissions...

the zoom gui never opens

mouchar commented 3 years ago

I just cracked this problem on my Ubuntu 20.04. There are several issues that prevent this snap from working.

  1. yad command is not part of the zoom-client snap
  2. attempt to query alsa interface

I solved it by the following steps:

  1. Disconnect zoom-client:desktop this is necessary to suppress calling missing yad
    $ sudo snap disconnect zoom-client:desktop
  2. Launch zoom-client from command-line Answer with letter s to start and don't ask again.
    
    $ /snap/bin/zoom-client
    Testing for explicit PulseAudio choice...
    Testing for ALSA permissions...
    Zoom may have better audio device support if granted permission to 
    access the ALSA audio system.

If you experience audio problems, you may wish to grant this access by using the Software Centre or the Snap Store to add the 'alsa' permission to Zoom. It is safe to continue without doing so.

You can also grant this permission by running the following command in a Terminal window:

sudo snap connect zoom-client:alsa

If you choose to continue and later wish to change your mind, you can remove the file /home/robert/snap/zoom-client/common/Always use PulseAudio.

Type [p] to re-test after granting [p]ermission, [s] to [s]tart and not ask again, [a] to start and [a]sk again next time, or [c] to [c]ancel (default)

permission | start | ask | [cancel] > sSetting ALSA to always route through PulseAudio

3. Reconnect desktop back to zoom-client

$ sudo snap connect zoom-client:desktop

4. Start Zoom client as usual.

Note: All these steps can be simplified to simply running this command:

$ echo 'ALWAYS_USE_PULSEAUDIO=1' > $HOME/snap/zoom-client/common/'Always use PulseAudio'

ogra1 commented 3 years ago

seems the alsa-mixin snapcraft part has regressed again, it should (and did) work without requiring yad, i'll talk to @diddledan to fix it and will re-build the zoom snap in edge once that happened ...

ogra1 commented 3 years ago

i have added

ALWAYS_USE_PULSEAUDIO: 1

as a quick fix for now, the latest build in the edge channel should now work again ...

thanks a lot for the reports and research !!