Toura/mulberry — Issue #339: Setting path in .profile instead of .bash_profile
Author: nwksystems
Created: 2012-02-19 23:36:21+00:00
State: open

Hi! First of all, I really want to thank you for providing Ubuntu support. :)

I noticed that when I ran the installation script on Ubuntu, the path to the command line tool was placed into ~/.bash_profile. I'm not an expert on this by any means, but I believe a better place would be ~/.profile.

If a user doesn't have .bash_profile to begin with, creating a new one will override anything they have in their .profile or .bash_login (which is what happened to me).

I suppose the best solution would be detecting which file is being used and adding to that. Next best might just be adding to .profile, and then the worst that will happen is the mulberry cli won't work (much better than breaking the user's other start-up scripts). Generally, if you're using a .bash_profile, I believe you are calling .profile from it anyway (which should still contain all of your PATH settings).

Here's a short summary of the purpose and run order for those scripts:
http://stefaanlippens.net/bashrc_and_others

Best,
Nick