Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-07-23 00:44:41

bitrat
Member
Registered: 2023-07-19
Posts: 20

how do I call set the profile/environment in x login shell?

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

#2 2023-07-29 18:50:54

KBar
Moderator
Registered: 2021-11-05
Posts: 689

Re: how do I call set the profile/environment in x login shell?

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! tongue

Offline

#3 2023-08-17 06:30:15

bitrat
Member
Registered: 2023-07-19
Posts: 20

Re: how do I call set the profile/environment in x login shell?

KBar wrote:

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

Board footer

Powered by FluxBB