'How do we call c++ application from web on client side on linux

For example, a client has a c++ application, and trying to access web application on the browser. But the web application needs to run this application. I don't understand how we can call that application from web. I tried that solution https://askubuntu.com/questions/330937/is-it-possible-to-open-an-ubuntu-app-from-html . but it did not work. It only opens well-recognized apps. Can we use this technique to open c++ application and give them some argument, like ./abc -a password -b username.

If you find my question confusing, please let me know. I will try to explain more.



Solution 1:[1]

Short answer: no.

There are workarounds that would include registering link handlers, like the solution you tried, but you can't call a command line program from within a web browser directly (there are a million ways it could be misused).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sam