Junction has a very simple API that doesn't require any programming. To open any resource with Junction, even if it's not configured as the default application, simply use the following URI format x-junction://$RESOURCE. For examples
x-junction://https://github.com
x-junction://~
x-junction://file:///etc/os-release
x-junction:///etc/os-release
You can use this in web pages, the terminal, native applications and anything that is able to open URIs.
If Junction is installed - you can test this in the terminal with xdg-open "x-junction://file:///etc/os-release" and in the browser with <a href="x-junction://file:///etc/os-release">Test Junction URI</a>.
Taken from the README update
Junction has a very simple API that doesn't require any programming. To open any resource with Junction, even if it's not configured as the default application, simply use the following URI format
x-junction://$RESOURCE
. For examplesx-junction://https://github.com
x-junction://~
x-junction://file:///etc/os-release
x-junction:///etc/os-release
You can use this in web pages, the terminal, native applications and anything that is able to open URIs.
If Junction is installed - you can test this in the terminal with
xdg-open "x-junction://file:///etc/os-release"
and in the browser with<a href="x-junction://file:///etc/os-release">Test Junction URI</a>
.