Description of problem: Processing /etc/profile.d/lang.sh at autologin is time consuming / slow (~10 seconds) . I profiled it using the attached /etc/zshrc . Using this instead is much faster: https://github.com/shlomif/shlomif-computer-settings/blob/975559439bf1e24e1feb38b5fa44353cab323a58/shlomif-settings/Bash/bashrc/bashrc.d/my-lang.bash <<< eval "$(perl -0777 -pE 's/[\r\n]/ /g;s#\A#export #' < "$HOME/.i18n")" >>> I am using this setup for vc autologin: https://wiki.archlinux.org/index.php/Getty Note that zsh loads my bashrc.d/*.bash files too.
Created attachment 11816 [details] modified zshrc with profiling logging
What's the output of the profiling?
CC: (none) => olav
(In reply to Olav Vitters from comment #2) > What's the output of the profiling? it says that sourcing "/etc/profile.d/lang.sh" takes about 10seconds while all other operations take a few milliseconds at worst.
Shlomi, can you say whether this has always been the case, or is it new with Mageia 8? Also, does it just happen with autologin, or any login? Assigning this to basesystem, no evident maintainer.
Assignee: bugsquad => basesystemCC: (none) => lewyssmith
(In reply to Lewis Smith from comment #4) > Shlomi, can you say whether this has always been the case, or is it new with > Mageia 8? I do not recall it happening in mageia 7 or before. >Also, does it just happen with autologin, or any login? > This will require disabling autologin. > Assigning this to basesystem, no evident maintainer.
CC: lewyssmith => (none)