You are not logged in.

#1 2025-09-02 02:49:01

n0yau
Member
Registered: 2025-09-02
Posts: 3

[SOLVED] $PATH different for WM compared to TTY.

I spent awhile trying to figure out why my path wasn't including ~/bin or any of the other paths on the system except "/usr/local/bin:/usr/bin".

Eventually I narrowed it down to my Hyprland session being the culprit because when I would log into the TTY all the system paths would be present.
I included "env = PATH,$PATH:~/bin" in my Hyprland config which did fix my initial issue but I don't want to have to manually specify all the other paths like this.

How do I get my path to be the same as my user in both the TTY and Hyprland and more importantly why are they different?
I would've assumed the environment variables would be the same since I'm using bash in both.

I'm using autologin through agetty and a systemd user service that automatically starts Hyprland upon user login.

[SOLUTION]
Disabled my user systemd service for auto-starting Hyprland and added "hyprland > /dev/null" to my bash_profile.

User systemd services don't use certain environment variables and source them elsewhere.
https://wiki.archlinux.org/title/Enviro … _variables

Last edited by n0yau (2025-09-02 21:13:36)

Offline

#2 2025-09-02 04:38:14

killertofus
Member
Registered: 2025-02-10
Posts: 171

Re: [SOLVED] $PATH different for WM compared to TTY.

as said in issue 6501 hyprland doesnt do anything to your path nor should it

link/check your hyprland config to see if you put anything that would change your path, also, link/check your login shell to see if you exported anything that would change that


I Have Linux Perl Can i Download Gnome???

Offline

#3 2025-09-02 07:37:47

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,699

Re: [SOLVED] $PATH different for WM compared to TTY.

I'm using autologin through agetty and a systemd user service that automatically starts Hyprland upon user login.

So no bash involved.
How exactly do you otherwise include ~/bin in your $PATH
https://wiki.archlinux.org/title/Environment_variables

Offline

Board footer

Powered by FluxBB