You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
right now systemd units (timer and corresponding service) are installed to "/usr/lib/systemd/system", what means that they are system-wide.
system-wide systemd units are launched as root unless User is explicitly specified. but yay's cache is in "per-user" basis (stays in user's home). so, by default the script will look into root's home, what is wrong.
specifying desired user for service or cache path in the config file solves the issue, but this is a bit inconvenient and "non canonical way".
from other side, systemd offers per-user services (see systemctl --user), such units (installed with packages) should go to "/usr/lib/systemd/user". then they can be enabled by specific user and will be executed as this user (so home will point to the right and desired location).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
right now systemd units (timer and corresponding service) are installed to "/usr/lib/systemd/system", what means that they are system-wide.
system-wide systemd units are launched as root unless
User
is explicitly specified. butyay
's cache is in "per-user" basis (stays in user's home). so, by default the script will look into root's home, what is wrong.specifying desired user for service or cache path in the config file solves the issue, but this is a bit inconvenient and "non canonical way".
from other side, systemd offers per-user services (see
systemctl --user
), such units (installed with packages) should go to "/usr/lib/systemd/user". then they can be enabled by specific user and will be executed as this user (so home will point to the right and desired location).Beta Was this translation helpful? Give feedback.
All reactions