/etc/profile not valid for my bash?

Fighting with last stable update i was wondering about this


[manjaro2 john1]# echo $DIFFPROG

[manjaro2 john1]# source /etc/profile
[root@manjaro2 john1]# echo $DIFFPROG
/usr/bin/meld
[root@manjaro2 john1]# echo $SHELL
/usr/bin/bash


Info

Generated on 2024-02-24 13:48:1708778918

#################### inxi -Fxzc0 ########################

System:
  Kernel: 6.1.77-2-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
  Desktop: Xfce v: 4.18.1 Distro: Manjaro base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 81RS v: Lenovo Yoga S740-14IIL serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN serial: <superuser required> UEFI: LENOVO
    v: BYCN39WW date: 05/28/2021
Battery:
  ID-1: BAT0 charge: 63.0 Wh (96.5%) condition: 65.3/62.0 Wh (105.3%) volts: 17.0 min: 15.4
    model: LGC L19L4PD2 status: full
CPU:
  Info: quad core model: Intel Core i7-1065G7 bits: 64 type: MT MCP arch: Ice Lake rev: 5 cache:
    L1: 320 KiB L2: 2 MiB L3: 8 MiB
  Speed (MHz): avg: 503 high: 1224 min/max: 400/3900 cores: 1: 400 2: 400 3: 400 4: 400 5: 1224
    6: 400 7: 400 8: 400 bogomips: 23968
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Iris Plus Graphics G7 vendor: Lenovo driver: i915 v: kernel arch: Gen-11
    bus-ID: 00:02.0
  Device-2: NVIDIA GP108M [GeForce MX250] vendor: Lenovo driver: nvidia v: 545.29.06 arch: Pascal
    bus-ID: 2b:00.0
  Device-3: Chicony Integrated Camera driver: uvcvideo type: USB bus-ID: 3-5:5
  Display: x11 server: X.Org v: 21.1.11 driver: X: loaded: modesetting,nvidia unloaded: nouveau
    dri: iris gpu: i915 resolution: 1: 1920x1080~60Hz 2: N/A
  API: EGL v: 1.5 drivers: iris,nvidia,swrast platforms: active: gbm,x11,surfaceless,device
    inactive: wayland,device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 23.3.5-manjaro1.1 glx-v: 1.4
    direct-render: yes renderer: Mesa Intel Iris Plus Graphics (ICL GT2)
Audio:
  Device-1: Intel Ice Lake-LP Smart Sound Audio vendor: Lenovo driver: sof-audio-pci-intel-icl
    bus-ID: 00:1f.3
  API: ALSA v: k6.1.77-2-MANJARO status: kernel-api
  Server-1: sndiod v: N/A status: off
  Server-2: PipeWire v: 1.0.3 status: active
Network:
  Device-1: Intel Ice Lake-LP PCH CNVi WiFi driver: iwlwifi v: kernel bus-ID: 00:14.3
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter driver: r8152 type: USB bus-ID: 2-1.4:4
  IF: enp0s13f0u1u4 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: pan1 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB bus-ID: 3-10:8
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends
Drives:
  Local Storage: total: 1.86 TiB used: 388.7 GiB (20.5%)
  ID-1: /dev/nvme0n1 vendor: Micron model: MTFDHBA1T0TCK size: 953.87 GiB temp: 44.9 C
  ID-2: /dev/sda vendor: Western Digital model: WD10EARX-00N0YB0 size: 931.51 GiB type: USB
  ID-3: /dev/sdb vendor: Kingston model: DataTraveler 2.0 size: 14.54 GiB type: USB
Partition:
  ID-1: / size: 57.85 GiB used: 37.88 GiB (65.5%) fs: ext4 dev: /dev/nvme0n1p8
  ID-2: /boot/efi size: 259.5 MiB used: 132.8 MiB (51.2%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: partition size: 16.67 GiB used: 0 KiB (0.0%) dev: /dev/nvme0n1p9
Sensors:
  System Temperatures: cpu: 54.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 16 GiB note: est. available: 15.19 GiB used: 2.89 GiB (19.0%)
  Processes: 290 Uptime: 1h 51m Init: systemd
  Packages: 2055 Compilers: clang: 16.0.6 gcc: 13.2.1 Client: Unknown Client: wrapper-2.0
    inxi: 3.3.33

What do i misunderstand here?

This stable update with polkit … was really hard stuff !

Hi @JohnML,

Maybe you can explain to me why you were able to provide the inxi information so beautifully and well-formatted, but your other terminal output looks like:

…because I don’t get it.

Nevertheless, I don’t have /etc/profile sourced, either. And, since you’re using bash if you want to add it, simply run:

echo "source /etc/profile" >> ~/.bashrc

And open a new terminal.

Personally, I wouldn’t bother if I were you. I’d rather make any changes I want in ~/.bashrc.

According to this post it may be an issue with LightDM (which is the display manager used by Xfce). I have no problem with /etc/profile on KDE.

Put whatever variables you need in .bash_profile in your home.

I think you mean ~/.bash_profile. :stuck_out_tongue:

Thanks for referencing my post, I just looked into the issue again from the /etc/profile perspective. I think that /etc/profile is not affected by the LightDM issue. I added an explanation to my post over there.

@JohnML What happens if you:

$ bash --login
$ echo $DIFFPROG
$ exit

I can confirm: I am on Xfce with LightDM, and /etc/profile is ok: only ~/.profile is not functional.

1 Like

You can symlink it to .xprofile lightdm still calls this!

ln -s /home/robin0800/.profile /home/robin0800/.xprofile