You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

750 B

videolinks-in-smplayer

This set of script and sub-scripts opens various links in video player instead of in the default browser

How to use

In Trinity desktop just set this script as default browser. It will parse all links and not recogized ones opens in default browser defined in x-www-browser

How it works

Main script goes through all defined directories with the scripts, runs one by one and if it doesn't recognize the link, it ends with return code 1. If link matches, sub-script runs app defined in second parameter and returns code 0 to the main script. When main script receives RC 0 it ends execution immediately.

Execution of main script can be also stoped by return code 127 which interrupts running with message to stderr.