[pacman-dev] Idea for makepkg. Use notify-send when package finishes compiling. (optional feature)

Eli Schwartz eschwartz at archlinux.org
Thu Sep 26 23:29:19 UTC 2019


On 9/26/19 7:12 PM, igo95862 wrote:
> Often when compiling large packages I find myself missing the "sudo"
> promt to install compiled package.
> 
> I have thought of a solution using notify-send command from
> community/inotify-tools package that will send a notification when the
> package finishes compiling. (but before install)
> 
> Could be implemented as an opt-in option in makepkg.conf
> 
> If you are interested I can send a patch.

Sounds like your /etc/sudoers is misconfigured, try setting
passwd_timeout to something else.

Alternatively, even if pacman exited with a failure to install the built
package, you can always run makepkg -i again -- pacman will detect the
built package and go straight to offering to install it. You could also
generally avoid using makepkg -i to build, but simply use:

makepkg && notify-send ... && makepkg --packagelist | sudo pacman -U -

Store this as a small shellscript called "makepkg-notify".

-- 
Eli Schwartz
Bug Wrangler and Trusted User

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1601 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20190926/32581e7a/attachment.sig>


More information about the pacman-dev mailing list