I am no expert, but as far as my experience goes, an app registers a URI scheme with the system, and then it is as easy as 'xdg-open scheme://stuff's life e12e said.