Reputation: 1
I have created a simple executable which when run directly on Ubuntu, opens an url using firefox but when installed as a part of snap package, it fails with "firefox : not found" error although i have provided a network plug.
Upvotes: 0
Views: 232
Reputation: 226
Use xdg-open in your application to launch the url using the default web browser. On the host running the snap, they need to have snapd-xdg-open
(so apt install snapd-xdg-open
) installed. This will be fixed in a future snapd release.
Upvotes: 1