Add AUR helper option in Applications menu#4447
Add AUR helper option in Applications menu#4447unkver wants to merge 1 commit intoarchlinux:masterfrom
Conversation
Adds yay and paru as installable AUR helpers via the Applications menu
|
Few technical concerns:
|
|
Got it, I guess I'm not good at writing services - will try to fix as soon as possible. |
|
I would probably argue that this os not essential to get a system up and running and can be considered a post installation step altogether. Especially as this goes very much into the user space by installing go or rust systemwide. At this point it doesn't fit the "installing a working system" but rather a "setup an installed system". |
I've been using this tool starting from 2023, and I saw myself constantly doing the same thing that takes my time - installing an AUR helper like yay or paru. I thought abt it and I guess a lot of people do that anyways, so here I decided to try contributing to an open source project for the first time.
PR Description:
This adds yay and paru as installable options under the Applications menu in archinstall. And yes, it seems to preview correctly too - under the main menu and under the applications menu.
The way I implemented this is kind of tricky - since makepkg can't be ran as root (and we are root during the archinstall), it makes a service that installs the helper the first time the user boots up their new Arch system, then deletes itself (the service). You can read more in the comments that I wrote.
Tests and Checks
I've tested it a lot in a virtual machine under a lot of circumstances (user picks yay/paru, doesn't pick anything, doesn't make a user), and it works great so far!
It took me a while to understand how this tool works (I took heavy inspiration from the audio option in Applications), and I do understand that there might be a safer way to do this, but this is my attempt to learn and do something useful at the same time :-)