Should not ~/bin be included in path when running via VNC?

Bo Berglund bo.berglund at gmail.com
Sun May 24 05:45:14 UTC 2020


On Sat, 23 May 2020 17:38:32 -0400, Sheemon Lists
<sheemon.lists at gmail.com> wrote:

>
>Profile vs. bashrc, in /etc, in tilde.
>PATH is a convention, and different people at different times arrive at
>different interpretations.

I have checked the ~/.profile file and found this regarding $PATH:

----- On the problem Ubuntu 18 machine: -----

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi

---- On my Raspbian box: -----

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi

As you can see they look exactly the same....

So is there a problem inside the GUI when starting a Terminal session
in a VNC session?

Will that not call ~/.profile at all???

Note:
I have installed the Mate desktop in order to get a working
environment I can understand. It is installed after first installing
Ubuntu 18.

So when I say I open Terminal in the GUI I am using the menu item for
the Mate Terminal since no other terminal is available.
(command mate-terminal)

But I have also created a desktop icon for gnome-terminal so I can
select between the two, however it makes no difference.
PATH still does not contain the ~/bin part.


-- 
Bo Berglund
Developer in Sweden





More information about the ubuntu-users mailing list