You are not logged in.

#1 2021-07-12 08:59:13

Toadfield
Member
Registered: 2021-06-08
Posts: 72

Can I set that the compositor doesn't use Env Vars that in .zprofile?

I have many Environment Variables in .zprofile,the problem is that they get also applied for the compositor and then the compositor doesn't work right.
So can I set that environment variables in .zprofile get applied for everything except the compositor?

Offline

#2 2021-07-12 13:39:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,432

Re: Can I set that the compositor doesn't use Env Vars that in .zprofile?

1. Don't add random environment variables to .zprofile - stuff that's only relevant in an interactive shell belongs into .zshrc
2. Just uset the variable before you run picom

FOO= BAR= picom &

Or in doubt (shell agnostic)

env FOO= BAR= picom &

Offline

#3 2021-07-13 04:18:43

Toadfield
Member
Registered: 2021-06-08
Posts: 72

Re: Can I set that the compositor doesn't use Env Vars that in .zprofile?

I use kwin,not picom

Offline

#4 2021-07-13 04:38:53

loqs
Member
Registered: 2014-03-06
Posts: 19,009

Re: Can I set that the compositor doesn't use Env Vars that in .zprofile?

Toadfield wrote:

I use kwin,not picom

You missed the point was the technique being used.  It can be applied to any command.

Offline

#5 2021-07-13 06:07:59

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,432

Re: Can I set that the compositor doesn't use Env Vars that in .zprofile?

Though kwin is likely started by the kde session process (is likely started by the DM?)

@Toadfield, let's maybe focus on what you actually set and which variables you don't want for "the compositor" - and why.
Post and explain your zprofile, since this is probably an xy-problem.
Also "stat /bin/sh" (to explain why eg. SDDM would invoke your zprofile to begin with)

Offline

Board footer

Powered by FluxBB