You are not logged in.
Hi,
I want to call a ~/.profile script.
I've tried .xsessionrc .xinitrc .xsession ....
Do I need to set an option somewhere?
ps: .xsessionrc seems to be used, as I can successfully prevent myself from logging in by putting errors in it, but the following has no effect:
if [ -f ~/.profile ]; then
. ~/.profile
fi
Cheers,
bitrat
Last edited by bitrat (2023-07-23 03:25:18)
Offline
Hi.
What exactly are you after? Could you elaborate more?
Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please!
Offline
Hi.
What exactly are you after? Could you elaborate more?
Hi KBar,
I'm looking for somewhere to set environment variables that isn't called every time I login to a shell (ie, not .bashrc, etc).
Also, I'd like to have an environment that's set before X starts and one set when it starts.
Sorry, I've forgotten what I've looked at already, but none of the approaches I mentioned seemed to work.
Also, I'd prefer a method that doesn't prevent the system from starting if the file has errors.
Cheers,
bitrat
Offline