My installer detects if it was run as root/admin or normal user and then sets <addEnvironmentVariable> and <addEnvironmentVariable> to update the <scope> to system or user variables. On MS Windows, the installed updates registry values as I would expect, in the HKEY_CURRENT_USER\Environment\ for users and HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment\ for system updates.
On Linux, updates to <scope> with either system and user values change the $HOME/.bashrc and $HOME/.profile files. In effect, does this mean there is no difference between <scope> system/user values on Linux? To make a difference, would it be better to update the respective /etc/bash.bashrc and /etc/profile files when <scope> is system?
Please sign in to leave a comment.