Referring to this Question and this.
How to open any GUI application from a browser. It is working as expected if executed from a terminal. I basically need to open the desktop applications from a webpage. Do I need to provide any additional permissions?