FS#75282 - [perl] /usr/bin/*_perl/ missing from $PATH in Wayland sessions
Attached to Project:
Arch Linux
Opened by Sandelinos (sandelinos) - Saturday, 09 July 2022, 22:04 GMT
Last edited by Toolybird (Toolybird) - Sunday, 04 September 2022, 01:43 GMT
Opened by Sandelinos (sandelinos) - Saturday, 09 July 2022, 22:04 GMT
Last edited by Toolybird (Toolybird) - Sunday, 04 September 2022, 01:43 GMT
|
Details
Description:
Wayland sessions (intentionally) aren't run through a login shell, meaning /etc/profile.d/perlbin.sh isn't sourced and /usr/bin/{site,vendor,core}_perl are missing from $PATH in Wayland sessions. This could be fixed by adding a file /usr/lib/environment.d/perlbin.conf to the package with the following contents so $PATH gets updated by systemd --user. PATH="${PATH:+$PATH:}/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" Steps to reproduce: * install gdm, sway and perl * log in to sway and open a terminal * /usr/bin/{site,vendor,core}_perl are missing from $PATH |
This task depends upon
Closed by Toolybird (Toolybird)
Sunday, 04 September 2022, 01:43 GMT
Reason for closing: No response
Sunday, 04 September 2022, 01:43 GMT
Reason for closing: No response
So you're saying /etc/profile never gets sourced when logging into wayland via gdm? (I don't have a wayland setup currently)
I found some references but the situation is unclear [1][2]. Can't you just do what it says here[3]? Any experienced wayland users have some wisdom to share?
[1] https://bbs.archlinux.org/viewtopic.php?id=271207
[2] https://bbs.archlinux.org/viewtopic.php?id=218197
[3] https://wiki.gnome.org/Initiatives/Wayland/SessionStart#Environment_variables