FS#72634 - exec hook not working as normally executed
Attached to Project:
Pacman
Opened by sir akai (sirakai) - Thursday, 04 November 2021, 17:28 GMT
Last edited by Jonas Witschel (diabonas) - Monday, 15 November 2021, 16:08 GMT
Opened by sir akai (sirakai) - Thursday, 04 November 2021, 17:28 GMT
Last edited by Jonas Witschel (diabonas) - Monday, 15 November 2021, 16:08 GMT
|
Details
Summary and Info:
hook code:https://pastebin.com/7hWTUF12 dmenu_path code:https://pastebin.com/uKSRxiGz Steps to Reproduce: 1 copy the files to their path: /etc/pacman.d/hooks/dmenu_path.hook (default pacman hook's path) /usr/bin/dmenu_path 2 remove or install a package with pacman Conclusions: /usr/bin/dmenu_path hasn't been executed correctly, or at all. Note that i set exec to '/usr/bin/sh -c /usr/bin/dmenu_path' because '/usr/bin/dmenu_path' itself outputs everything to stout(without updating/creating the dmenu_run cache file), which even dmenu_path itself doesn't do. |
This task depends upon
Closed by Jonas Witschel (diabonas)
Monday, 15 November 2021, 16:08 GMT
Reason for closing: Not a bug
Additional comments about closing: pacman hooks are run as root
Monday, 15 November 2021, 16:08 GMT
Reason for closing: Not a bug
Additional comments about closing: pacman hooks are run as root
dmenu_path code doesn't work itself in that code, remove 'sh -c"$COMMAND"' and leave $COMMAND in there.
Also there's no apparent reason for the hook to stout the dmenu_path command, in shell it doesn't output anything.