Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upMaybe `~/.profile` is where PATH modifications should go #211
Comments
This comment has been minimized.
This comment has been minimized.
|
As @Diggsey pointed out on IRC the main problem with |
This comment has been minimized.
This comment has been minimized.
For example if a user launches application (IDE or Emacs, for example) via desktop environment and not via command line, then the Please note that not all desktop managers execute |
This comment has been minimized.
This comment has been minimized.
Ah, ok, that makes a lot of sense. So it's not just cli shells then that run So today if you do any development not under a shell the PATH is going to be misconfigured. Putting this into |
This comment has been minimized.
This comment has been minimized.
I think I've miscommunicated the part about I believe there is no single place where you can robustly do
in one of their dot files, which undoes all
|
This comment has been minimized.
This comment has been minimized.
|
The nature of environment variables on linux means we can't hope to get this to "just work" in all cases: |
This comment has been minimized.
This comment has been minimized.
|
I think it is the best practice to have |
This comment has been minimized.
This comment has been minimized.
jrobeson
commented
Apr 1, 2016
|
I doubt |
This comment has been minimized.
This comment has been minimized.
jrobeson
commented
Apr 1, 2016
|
In any case, please don't write useless files to my |
This comment has been minimized.
This comment has been minimized.
jrobeson
commented
Apr 1, 2016
|
oh, there's already an issue for that #170 |
This comment has been minimized.
This comment has been minimized.
|
@jrobeson FYI, X, Wayland and Mir are display servers while it is a display manager like GDM or LightDM which typically sources |
This comment has been minimized.
This comment has been minimized.
jrobeson
commented
Apr 1, 2016
|
i had no idea about xprofile, because I've never had any |
brson commentedMar 30, 2016
@Diggsey had multirust-rs installing path modifications to
~/.profileand I changed it because~/.profileis only read for login shells, and that seemed wrong since most shells are not login shells. I'm happy to change this to do the right thing, but I'd like to understand better why it's ok not to set thePATHfor non-login shells.Source.