Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Èròjà atẹ̀lélànà yii ni a ti fi pamọ́ fọ́jọ́ pípẹ́. Jọ̀wọ́ béèrè ìbéèrè titun bí o bá nílò ìrànwọ́.

Is it possible to open an Ubuntu app from HTML? (firefox)

  • 1 èsì
  • 1 ní ìṣòro yìí
  • 1 view
  • Èsì tí ó kẹ́hìn lọ́wọ́ javpramod

more options

hi all,

I am in search of 'open an Ubuntu app (installed in the system) from an HTML file', and i got a solution from 'ask ubuntu' (refer: http://askubuntu.com/a/332389/447970). I tried it and its working good in Chromium and Chrome browsers, but not working in firefox, i am using firefox 46.0 (Edubuntu 14.04). The steps which i have done:

I. Create application launcher script

  1. a. mkdir -p bin
  2. b. gedit ~/bin/open_app.sh
  1. c. script:
  1. !/bin/bash

if [[ "$1" != "app://" ]]; then

   app=${1#app://}
   nohup "$app" &>/dev/null &

else

   nohup gnome-terminal &>/dev/null &

fi

  1. d. chmod +x ~/bin/open_app.sh

2. Create .desktop file for application launcher

sudo -H gedit /usr/share/applications/appurl.desktop

added the following content:

[Desktop Entry] Name=TerminalURL Exec=/home/name/bin/open_app.sh %u Type=Application NoDisplay=true Categories=System; MimeType=x-scheme-handler/app;

III. Refresh mime types database

sudo update-desktop-database

IV. Then created a html file with tagging like:

Open Gimp: <a title="Open" href="app://gimp">Gimp - 2.8</a>

thats all.

If I open this html file in firefox and click on the hyper-link nothing happening.

What is the problem, is there any changes to make in Firefox browser?

Pls help - Jay

hi all, I am in search of 'open an Ubuntu app (installed in the system) from an HTML file', and i got a solution from 'ask ubuntu' (refer: http://askubuntu.com/a/332389/447970). I tried it and its working good in Chromium and Chrome browsers, but not working in firefox, i am using firefox 46.0 (Edubuntu 14.04). The steps which i have done: I. Create application launcher script #a. mkdir -p bin #b. gedit ~/bin/open_app.sh #c. script: #!/bin/bash if [[ "$1" != "app://" ]]; then app=${1#app://} nohup "$app" &>/dev/null & else nohup gnome-terminal &>/dev/null & fi #d. chmod +x ~/bin/open_app.sh 2. Create .desktop file for application launcher sudo -H gedit /usr/share/applications/appurl.desktop added the following content: [Desktop Entry] Name=TerminalURL Exec=/home/name/bin/open_app.sh %u Type=Application NoDisplay=true Categories=System; MimeType=x-scheme-handler/app; III. Refresh mime types database sudo update-desktop-database IV. Then created a html file with tagging like: <p>Open Gimp: <a title="Open" href="app://gimp">Gimp - 2.8</a></p> thats all. If I open this html file in firefox and click on the hyper-link nothing happening. What is the problem, is there any changes to make in Firefox browser? Pls help - Jay

Ọ̀nà àbáyọ tí a yàn

HI team,

I was able to find out a solution, its a network-protocol issue. Added an entry in firefox config. as:

network.protocol-handler.external.app;true

now its working fine.

thanks for the support - Jay

Ka ìdáhùn ni ìṣètò kíkà 👍 0

All Replies (1)

more options

Ọ̀nà àbáyọ Tí a Yàn

HI team,

I was able to find out a solution, its a network-protocol issue. Added an entry in firefox config. as:

network.protocol-handler.external.app;true

now its working fine.

thanks for the support - Jay