Skip to main content
Topic: /run/user && $HOME in /etc/security/pam_env.conf (Read 2374 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

/run/user && $HOME in /etc/security/pam_env.conf

So yesterday i migrate from arch to artix with dinit, have some issue, but actually i can use my computer like it's was before on arch.

I have just some issue with /run/user, and $HOME in /etc/security/pam_env.conf.

For the first one, when i launch waybar, i have this
Code: [Select]
[2025-10-09 12:33:03.541] [info] Using configuration file /home/wateir/.config/waybar/config.jsonc
[2025-10-09 12:33:03.543] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files
[2025-10-09 12:33:03.543] [info] Using CSS file /home/wateir/.config/waybar/style.css
[2025-10-09 12:33:03.551] [info] Hyprland IPC starting
[2025-10-09 12:33:03.553] [info] Loading persistent workspaces from Waybar config
[2025-10-09 12:33:03.553] [info] Loading persistent workspaces from Hyprland workspace rules
[2025-10-09 12:33:09.814] [warning] Failed to parse IPC message: openwindow>>32dabe15f60,1,otter-launcher,otter-launcher, reason: Hyprland IPC: Couldn't open a socket (1)
[2025-10-09 12:33:13.408] [warning] Failed to parse IPC message: closewindow>>32dabe15f60, reason: Hyprland IPC: Couldn't open a socket (1)
But this is only the part i have when i do waybar > file.log

the most important is after, I'm spam with
Code: [Select]
Failed to create secure directory (/run/user/1000/pulse): Too many open files
socket: Too many open files
fork: Cannot allocate memory
shared memfd open) failed: Too many open files
when i have this ctr +c don't work and I'm have to kill the kitty terminal where i see that.

My second issue, and i don't know if it's related, but in pam_env.conf i have
Code: [Select]
XDG_CONFIG_HOME DEFAULT=${HOME}/.config
XDG_CACHE_HOME DEFAULT=${HOME}/.cache
XDG_DATA_HOME DEFAULT=${HOME}/.local/share
XDG_STATE_HOME DEFAULT=${HOME}/.local/state
XDG_DATA_DIRS DEFAULT=/usr/local/share:/usr/share
XDG_CONFIG_DIRS DEFAULT=/etc/xdg
GOPATH DEFAULT=${XDG_DATA_HOME}/go

But after the installation XDG_DATA_HOME go to /.local/share and not /home/wateir/.local/share like before the migration, who cause some issue.
I have fix the majority by just export again on my .zshrc but i definitely not the good way to do this.


Re: /run/user && $HOME in /etc/security/pam_env.conf

Reply #1
So yesterday i migrate from arch to artix with dinit

Might be a bummer, but better replace every single arch package installed with the artix equivalent.

Re: /run/user && $HOME in /etc/security/pam_env.conf

Reply #2

Might be a bummer, but better replace every single arch package installed with the artix equivalent.

Code: [Select]
 pacman -Sl system | grep installed | cut -d" " -f2 | pacman -S -
 pacman -Sl world | grep installed | cut -d" " -f2 | pacman -S -
 pacman -Sl galaxy | grep installed | cut -d" " -f2 | pacman -S -
If you mean that, i have do it, and 3 time for waybar

Re: /run/user && $HOME in /etc/security/pam_env.conf

Reply #3
Try reinstalling the package that contains the /etc/security/limits.conf file and/or finding a pacnew file for it and overwriting.

At least on my system, that's pam.

 

Re: /run/user && $HOME in /etc/security/pam_env.conf

Reply #4
Try reinstalling the package that contains the /etc/security/limits.conf file and/or finding a pacnew file for it and overwriting.

At least on my system, that's pam.
Code: [Select]
❯ pacman -Qil pam | grep limits.conf
pam /etc/security/limits.conf
pam /usr/share/man/man5/limits.conf.5.gz
pacman -S pam don't change the behavior, but thanks for the suggestion

Code: [Select]
❯ eza -a /etc/security
access.conf   group.conf  namespace.conf  pam_env.conf    time.conf
faillock.conf   limits.conf   namespace.init  pwhistory.conf
For the second part of suggestion