purcell / exec-path-from-shell

Make Emacs use the $PATH set up by the user's shell
Other
1.41k stars 81 forks source link

README suggestion #99

Closed nehrbash closed 4 years ago

nehrbash commented 4 years ago

I launch emacs as a daemon and had to change my systemd startup process to point to a shell script to source my profile and rc files before launching the daemon. I feel like this fix would be useful to other if mentioned in the README.

purcell commented 4 years ago

Done, thank you.

marlinstrub commented 3 years ago

What is now mentioned in the readme already helps, but I'm not sure it fully covers @snehrbass' fix? For exec-path-from-shell-initialize to get my user's path I had to replace

ExecStart=/path/to/emacs --daemon

with

ExecStart=/bin/bash -c 'source .bashrc; /path/to/emacs --daemon

otherwise my user's local bin would not be included in the path. Maybe something along these lines would be helpful to add @purcell ?

purcell commented 3 years ago

otherwise my user's local bin would not be included in the path. Maybe something along these lines would be helpful to add @purcell ?

If I'm understanding your comment correctly, aren't you suggesting I tell users to set things up so that they don't need this package? I feel like that's a little bit out of scope for this README.