hyprwm / hyprland-wiki

The Hyprland Wiki Pages, automatically synced with the website.
BSD 3-Clause "New" or "Revised" License
244 stars 347 forks source link

Environment Variables #171

Open Moerliy opened 1 year ago

Moerliy commented 1 year ago

To make it quick: On the wiki for environment variables at QT_QPA_PLATFORM="wayland;xcb" the quotation mark should be deleted. They're already gone below QT Variables headline.

vaxerski commented 1 year ago

well the issue is that if you do export then the quotes need to be there, but if you use hyprland's env they can't be there.

Moerliy commented 1 year ago

I noticed that too but also got trick by it because I was copy pasting 🫠. I mean it already says it above but I think it should be uniform. Btw. now that they added the env keyword is using the wrappedhl and the old way of exporting env variables even advisable?

vaxerski commented 1 year ago

they

you mean, me

is using the wrappedhl and the old way of exporting env variables even advisable?

it's not advisable, it's legacy

Moerliy commented 1 year ago

My bad, I was just generally speaking. Maybe you should change all the examples that are shown, to the syntax you would use in the config then.

hughesjs commented 1 year ago

Along similar lines, this page doesn't explain how exactly to add env vars that include commas in them? How would I do that if I'm not using quotes..?

whispcat commented 1 year ago

Along similar lines, this page doesn't explain how exactly to add env vars that include commas in them? How would I do that if I'm not using quotes..?

I guess just simply remove quotes should works e.g. QT_QPA_PLATFORM,wayland;xcb and GDK_BACKEND,wayland,x11 because my environment variables showed correctly through the command printenv that way.

BTW, the environment variable section also confused me a little bit and needs more detail.