0

Recently, I upgraded my computer to release 21.10. So I'm facing some issues related to it. Among then, .profile is not being executed when I login.

it's weird, because I used to have this kind of issue when I run Fedora, but never in Ubuntu - yet.

Any ideas? I'll post it below:

#sudo openvpn /etc/openvpn/strongvpn.conf &
pacmd set-card-profile 0 output:hdmi-stereo
bash /home/batch/AWS.sh &
bash /home/batch/gnetz &
bash /home/Programas/ums/UMS.sh &
shutter &
#grkellm &

PS.: it works when I execute it manually.

Redbob
  • 1,543
  • 1
  • 11
  • 23
  • Do the files `~/.bash_profile` or `~/.bash_login` exist? If they do, `~/.profile` is not sourced. – Artur Meinild Nov 05 '21 at 12:23
  • @ArturMeinild `.bash_profile` exists, but `.bash_login`, no. – Redbob Nov 05 '21 at 12:27
  • In that case, `~/.bash_profile` is used instead of `~/.profile`. Choose which one you want to use, and remove `~/.bash_profile` if you want to use `~/.profile`. – Artur Meinild Nov 05 '21 at 12:29
  • 1
    Does this answer your question? [Why isn't .profile sourced when opening a terminal?](https://askubuntu.com/questions/566399/why-isnt-profile-sourced-when-opening-a-terminal) – Artur Meinild Nov 05 '21 at 12:36
  • `~/.bash_profile` is different from `~/.profile`, because the first one is lauched everytime I open a terminal box, while the other is lanched when I startup a session. And I need these two scripts alive in my profile. – Redbob Nov 06 '21 at 13:05

0 Answers0