You are not logged in.

#1 2021-09-13 06:51:33

rakotomandimby
Member
From: Madagascar
Registered: 2014-05-07
Posts: 23
Website

How to get PATH in X

Hi all,

My situation is this:

  1. I use XFCE

  2. I use Emacs in XFCE

  3. I installed Node in

    /home/mihamina/Apps/node

    so that "node" binary is in

    /home/mihamina/Apps/node/bin
  4. I installed "pyls" with

    pip install python-lsp-server

    so that "pyls" binary is in

    /home/mihamina/.local/bin
  5. In Emacs, I already set

    (add-to-list 'exec-path "/home/mihamina/Apps/node/bin")
  6. I already set the PATH in

    /home/mihamina/.bashrc

    and it is set correctly

  7. Neither "node" nor "pyls" are seen by Emacs

  8. But When I add

    append_path '/home/mihamina/Apps/node/bin'

      to 

     /etc/profile.d/mihamina.sh 

    and make sure it is loaded, Emacs finds it.

Is it the only way to alter PATH for X applications on Archlinux, or is there a cleaner way to do so?

Offline

#2 2021-09-13 06:58:40

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How to get PATH in X


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB