For example, from a web page, when a Ubuntu user clicks on the link apt:packageexample , the apturl protocol will launch the package manager to propose the installation of the package called "packageexample" from the repositories available on the computer.
For me, apturl wasn't enabled by default in Firefox 3.5, 3.6 or Swiftfox. But I was easily able to fix it, so I will now share with you how to do this.
sudo apt-get install apturl
Then, in Firefox 3.5, 3.6 or whatever version you may have installed, type about:config in the url bar and create the following parameters (Caracter chain: New > String; Bolean: New > Bolean) with the values mentioned below:
network.protocol-handler.app.apt in character chain with /usr/bin/apturl as value,
network.protocol-handler.app.apt+http in character chain with /usr/bin/apturl as value,
network.protocol-handler.warn-external.apt in boolean value and put false as value,
network.protocol-handler.warn-external.apt+http in boolean value and put false as value.
Then restart Firefox / Swiftfox (yes, it also works for Swiftfox).
Then try clicking on a apturl, such as the following: apt:packageexample. If it still doesn't work, go to Edit > Preferences, on the Applications tab, and on action, enter the path to apturl:
/usr/bin/apturl
Now it will definitely work!