• Re: gnome-shell: can't change PATH at gnome-shell level

    From Nicolas George@21:1/5 to All on Fri May 2 13:30:01 2025
    Greg Wooledge (HE12025-05-02):
    Or leave off the |tr if you don't mind having the result squashed together with the next shell prompt. Or replace |tr with ;echo to add a newline.

    Or use zsh, by default it adds a ‘%’ in reverse video to finish the unfinished lines in commands output.

    There are always good reasons to use zsh.

    Regards,

    --
    Nicolas George

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Max Nikulin on Fri May 2 13:20:01 2025
    On Fri, May 02, 2025 at 12:19:52 +0700, Max Nikulin wrote:
    I suggest to inspect PATH for each parent process PID in the tree reported
    by

    ps xwf

    e.g. with proper PID number (single line)

    while IFS='' read -r -d ''; do if [[ "$REPLY" = PATH* ]]; then echo "$REPLY"; break; fi; done </proc/PID/environ

    FYI you could also use:

    grep -z ^PATH= /proc/PID/environ | tr \\0 \\n

    Or leave off the |tr if you don't mind having the result squashed together
    with the next shell prompt. Or replace |tr with ;echo to add a newline.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)