detect video player

Seth Arnold seth.arnold at canonical.com
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?

Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20170301/e2e2bd83/attachment.sig>


More information about the Snapcraft mailing list