detect video player

Seth Arnold seth.arnold at
Thu Mar 2 06:58:07 UTC 2017

On Thu, Mar 02, 2017 at 08:02:53AM +0300, Vasilisc wrote:
> For example,
> vlc come from snap package (location /snap/vlc/current/...),
> smplayer - from deb package (location /usr/bin/smplayer).
> How to find available a video players in host system?

Can you trust the PATH to be useful and just blindly call execlp() with
the names of the players you support, each in turn, until you succeed
or fail?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <>

More information about the Snapcraft mailing list