Script Summary: Install ArchLinux packages from the browser
This script allows you to install ArchLinux/Pacman packages right from http://www.archlinux.org/packages.
It makes use of an external "pacman" url handler. To create such handler in Firefox, follow those instructions:
- Create a text file and add this content:
#!/bin/sh xterm -e "sudo pacman -S `echo $* | sed -e 's|^pacman:/*||' -e 's|/| |g'`"
You can replace xterm and pacman for your own terminal emulator or pacman wrapper (like powerpill). You can also replace sudo for su -c. - Make it executable:
chmod a+x /path/to/above/script
- Open about:config in Firefox and add those entries:
network.protocol-handler.app.pacman = /path/to/above/script network.protocol-handler.external.pacman = true network.protocol-handler.expose.pacman = false network.protocol-handler.warn-external.pacman = false
- The first time you try to open a pacman url, FF will ask you what application to open those urls. Choose the script you just created.



