Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is not possible to define additional environment variables #76

Closed
nadiamoe opened this issue Jul 29, 2023 · 3 comments
Closed

It is not possible to define additional environment variables #76

nadiamoe opened this issue Jul 29, 2023 · 3 comments

Comments

@nadiamoe
Copy link

For certain use cases it is beneficial to be able to set arbitrary environment variables for the X11 session. For example, setting QT_SCALE_FACTOR is a very convenient way to make the browser bigger on small touchscreens.

However, I haven't found so far a way to do this other than manually editing .xinitrc, which as per the comment on the file is strongly discouraged.

A way to do this would be to allow .xinitrc to source, instead of exec, /var/lib/chromium-kiosk/chromium-kiosk-prehook.sh. This way, the prehook would retain its current functionality but also allow exporting env vars which would persist in the X session.

@nadiamoe
Copy link
Author

As a workaround, I've managed to do this by dropping export lines on /var/lib/chromium-kiosk/.bashrc, as it happens to be sourced by .bash_profile in the same directory.

However as it seems that the latter is on its path to be deprecated (#71) I think the issue is still valid.

@Salamek
Copy link
Owner

Salamek commented Aug 7, 2023

.xinitrc should still work after #71 is done, so maybe source chromium-kiosk-prehook.sh as suggested? and be done with it? PR's welcomed

@Salamek
Copy link
Owner

Salamek commented Oct 16, 2023

I have added EXTRA_ENV_VARS option to config, see docs

@Salamek Salamek closed this as completed Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants