angry_vincent has quit [Read error: Connection reset by peer]
angry_vincent has joined #river
angry_vincent has quit [Ping timeout: 260 seconds]
ahmadraniri has joined #river
ahmadraniri has quit [Client Quit]
kennylevinsen has quit [Changing host]
kennylevinsen has joined #river
leopoldek has quit [Remote host closed the connection]
inkflaw has joined #river
inkflaw has quit [Quit: Client closed]
mtm has quit [Ping timeout: 260 seconds]
angry_vincent has joined #river
mtm has joined #river
Guest93 has joined #river
Guest93 has quit [Client Quit]
NemoGuest48 has joined #river
NemoGuest48 has quit [Quit: Client closed]
NemoGuest48 has joined #river
<NemoGuest48>
Hello! I have a problem...
<NemoGuest48>
I'm definitely missing something, but my knowledge is limited here.
<NemoGuest48>
I have a binary at $HOME/.local/bin/, specifically 'librewolf'. No matter how I try, I can't seem to execute it with 'riverctl spawn librewolf'.
<NemoGuest48>
My main shell is fish and /bin/sh links to dash.
<NemoGuest48>
What I tried:
<NemoGuest48>
adding '$HOME/.local/bin' to $PATH in fish config (actually a default setting)
<NemoGuest48>
adding '$HOME/.local/bin' to $PATH in .profile | /etc/profile
<NemoGuest48>
adding 'PATH="$HOME/.local/bin/:$PATH"' to river/init
<NemoGuest48>
creating dash config file through ENV and adding path there
<NemoGuest48>
adding '$HOME/.local/bin' to $PATH in /etc/environment (and all other paths) [???]
<NemoGuest48>
This kinda defies all linux laws, what am I missing?
leopoldek has joined #river
<dnkl>
you're missing how environment variables are inherited from parent to child processes, and how/by whom shell rc scripts are sourced
kotto has quit [Quit: WeeChat 4.3.4]
<NemoGuest48>
dnkl It can explain all others, but I thought /etc/environment is absolute?
<dnkl>
depends. for example, did you actually enter $HOME, like you wrote above? or the actual path? Don't think $HOME will work
<ifreund>
NemoGuest48: technically nothing is absolute, /etc/environment is implemented as a PAM module which has to follow the same rules about environment inheritence as all other linux processes
<ifreund>
I don't know anything about the syntax it supports though, I don't think it's executed by a shell
<ifreund>
I personally set the environment variables I want set for my river session in a script that launches river
<dnkl>
and I hope a pam module doesn't blindly expand environment variables...
<ifreund>
I don't think it does, the pam_env(8) man page suggests that it only supports basic KEY=VALUE pairs
<dnkl>
I would also suggest starting river from a try instead of through a graphical login manager. Much easier to verify the environment *before* river is started
<NemoGuest48>
dnkl /etc/environment actually recognizes variables, for example 'ENV="$HOME/.dashrc"' works and "riverctl spawn 'foot -e /bin/sh'" recognizes that
<ifreund>
on a more fundamental level, I don't think it makes logical sense to put user-specific config in /etc
<NemoGuest48>
It definitely doesn't, I was just out of options
<ifreund>
well, maybe try the option I suggested? (start river from a script that first sets up the proper environment)
<dnkl>
redan the pam_env man page
<dnkl>
Note that many environment variables that you would like to use may not be set by the time the module is called. For example, HOME is used below several times, but many PAM applications don't make it available by the time you need it.
<ifreund>
I strongly believe that the simplest, most fool-proof way to setup the environment for your river session is to do so right before the river binary is run
<ifreund>
pam_env seems like something that has no reason to exist
<ifreund>
perhaps I'm missing something though
<NemoGuest48>
I think I've tried that but I have problems with my memory so i'll try it again
NemoGuest48 has quit [Quit: Client closed]
NemoGuest48 has joined #river
<NemoGuest48>
dnkl suggestion was correct, GDM was to blame, though I didn't expect it to eat /etc/environment
<NemoGuest48>
Thank you, now 'export' in river/init works
<NemoGuest48>
Though I still need to uproot gnome from my installation
NemoGuest48 has quit [Quit: Client closed]
<ifreund>
tagged 0.3.5 with wlroots 0.18 support and gpu reset recovery :)
waleee has joined #river
<dnkl>
🤘
<dnkl>
(though I'm almost always on HEAD)
<ifreund>
dnkl: HEAD will probably get a bit spicy when the the river-window-management-v1 protocol finally lands in master, be warned :)
waleee has quit [Ping timeout: 255 seconds]
<novakane>
can't wait for when HEAD will breaks all layout generators at the same time :P
leopoldek has quit [Remote host closed the connection]
travankor has quit [Remote host closed the connection]
travankor has joined #river
angry_vincent has quit [Remote host closed the connection]
angry_vincent has joined #river
angry_vincent has quit [Ping timeout: 252 seconds]
<leon-p>
can't wait to finally deprecate *checks notes* 5 projects
leopoldek has joined #river
waleee has joined #river
Den4ikRus has quit [Read error: Connection reset by peer]
Den4ikRus has joined #river
aryak_ has joined #river
aryak has quit [Ping timeout: 252 seconds]
aryak_ is now known as aryak
aryak has quit [Ping timeout: 248 seconds]
Guest59 has joined #river
Guest59 has quit [Client Quit]
elshize has joined #river
elshize has quit [Remote host closed the connection]