Comment 7 for bug 1945015

Revision history for this message
Olivier Tilloy (osomon) wrote :

There's one additional problem: registering /snap/bin/firefox as an alternative appears to work (at least from update-alternatives' standpoint), but invoking e.g. gnome-www-browser doesn't, because /snap/bin/firefox is a symlink to /usr/bin/snap, and so the snap command is run with whatever parameters/URIs were passed to gnome-www-browser.

    osomon@dantian:~$ update-alternatives --query gnome-www-browser
    Name: gnome-www-browser
    Link: /usr/bin/gnome-www-browser
    Status: manual
    Best: /usr/bin/google-chrome-stable
    Value: /snap/bin/firefox

    Alternative: /snap/bin/firefox
    Priority: 50

    Alternative: /usr/bin/firefox
    Priority: 40

    Alternative: /usr/bin/google-chrome-stable
    Priority: 200

    osomon@dantian:~$ gnome-www-browser http://example.org
    error: unknown command "http://example.org", see 'snap help'.