You are not logged in.
I notice https://wiki.archlinux.org/title/Systemd/User say that
~/.local/share/systemd/user/ - where units of packages that have been installed in the home directory belong.
so how to build packages that can be install in the home directory ?
Last edited by nibazshab (2024-12-02 06:56:00)
Offline
you don't/can't
by definition pacman/packages are meant to not touch /home at all
Offline
you don't/can't
by definition pacman/packages are meant to not touch /home at all
ok thanks
Offline
User units for systemd should be installed under /usr/lib/systemd/user/, which is the location given next in your wiki link.
Packages that require modifications in $HOME usually leave a message in the postinstall script to tell the user what needs to be done.
Jin, Jîyan, Azadî
Offline
I see it.
/usr/lib/systemd/user/ work with units of packages
/etc/systemd/user/ , ~/.config/systemd/user/ work with custom units.
I think that Wiki tell me ~/.local/share/systemd/user/ also work with units of packages not custom units, so maybe have some way can build a package just install into $HOME ?
That's what I think.
Last edited by nibazshab (2024-12-03 11:06:38)
Offline
maybe have some way can build a package just install into $HOME ?
NO! full stop!
packages are meant to NOT affect /home un ANY way at all!
have a look at citrix icaclient: after setup it tells you "please copy these files from /usr/... to /home/..."
Offline
so how to build packages that can be install in the home directory ?
What do you mean by a package that can be installed in the home directory?
Offline
What do you mean by a package that can be installed in the home directory?
Mean that since ~/.local/share/systemd/user/ can be save Systemd Units, so a foo.pkg.tar.zst also can insall to $HOME like ~/.local/bin/, ~/.local/share/, ~/.local/etc/foo/foo.conf ....
Last edited by nibazshab (2024-12-05 11:58:57)
Offline
NO! full stop!
packages are meant to NOT affect /home un ANY way at all!
have a look at citrix icaclient: after setup it tells you "please copy these files from /usr/... to /home/..."
Yes, I already know about it.
Offline
Mean that since ~/.local/share/systemd/user/ can be save Systemd Units, so a foo.pkg.tar.zst also can insall to $HOME like ~/.local/bin/, ~/.local/share/, ~/.config/foo/foo.conf ....
Any package that does that violates arch packaging guidelines.
If you want to manage user services under /home/user , look for other methods then a package.
https://wiki.archlinux.org/title/Dotfiles should give you some ideas.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Mean that since ~/.local/share/systemd/user/ can be save Systemd Units, so a foo.pkg.tar.zst also can insall to $HOME like ~/.local/bin/, ~/.local/share/, ~/.local/etc/foo/foo.conf ....
$HOME and ~ would be taken from the user running makepkg which locks that built package to being usable by that user on that system. It also makes assumptions about when $HOME is mounted.
Offline