You are not logged in.
Here I little hack I coded to install packages directly from the AUR frontend.
Needed:
- yaourt
- Firefox with greasemonkey (https://addons.mozilla.org/addon/748) or any greasemonkey-scripts accepting browser.
Steps:
1. Create a small bash script called aur_opener.sh containing the following code:
#!/usr/bin/env bash
gnome-terminal -x /usr/bin/yaourt -S ${1//aur:\/\//}
2. Make the script executable
3. Open about:config in Firefox and add the following variable:
network.protocol-handler.app.aur
with value:
yaourt
4. Install the greasemonkey script AURlizer (http://userscripts.org/scripts/show/61015).
5. Visit any page on the AUR db. A new symbol [↓] will appear next to the package name. Click on it and you will be asked which program to use. Point Firefox to wherever aur_opener.sh is. install!
Note.
From now on, every time you click on a link like the following: aur://pkgname yaourt will start.
Enjoy.
PS
(Obviously, it would be very easy to implement this directly into yaourt / the AUR db )
Last edited by crocowhile (2009-11-01 17:43:38)
Offline
Wonderful!!!
Offline
I modified the instruction. There was a little mistake in how to configure firefox variable. Now should go.
Offline
One click away from disaster... yaaaah.
Nice job figuring out though. If only I could one click hot dogs.
Last edited by Gen2ly (2009-11-02 10:08:06)
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
Offline