Tuesday, March 13, 2012

HOWTO: APTURL with Midori Browser

The Bodhi Linux App Center utilises APTURL technology to allow users one click install for popular Linux software. We also ship with the Midori browser by default. If you are using a different Debian based distro and wish to have APTURL function in the Midori browser following is what I do to make it work on Bodhi:

In your ~/.local/share/applications directory create a file called:

mimeapps.list

For it's contents paste in:

[Added Associations]
x-scheme-handler/apt=apturl.desktop;

Finally we need to create one more file. In your /usr/share/applications make a file called:

apturl.desktop

For it's contents paste in:

[Desktop Entry]
Type=Application
Name=AptURL
Categories=Network;
MimeType=x-scheme-handler/apt;application/apt;
Exec=apturl %u
Terminal=false
NoDisplay=true

Note that you will need root access (or sudo) to create this second file in the proper location.

Restart Midori and now clicking on APTURL links should work (make sure you also have APTURL installed).

~Jeff Hoogland

1 comment: