-
Notifications
You must be signed in to change notification settings - Fork 787
snap: Cleanup more environment variable set by launcher script #6969
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
base: main
Are you sure you want to change the base?
Conversation
env.remove("XDG_CONFIG_HOME"); | ||
env.remove("XDG_CACHE_HOME"); | ||
env.remove("XDG_DATA_HOME"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this is safe. User or system could set this via systemd and wouldn't the launcher script inherit those paths?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
__
I'm not sure this is safe. User or system could set this via systemd and wouldn't the launcher script inherit those paths?
I think this should be fine. If a user is setting them in their own environment, they will get set when their shell starts. It's just environment variables that are set long enough to get ghostty running, before their shell starts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't set these variables in my shell init script. I set them in systemd.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm also not sure about this, because the user may not be launching a shell, they can launch any command
that could rely on these env vars, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your git history is messed up
593a2f5
to
3a85e3c
Compare
Yeah, I already fixed it. |
This unsets a few more environment variables that were set by the launcher script which could potentially effect other apps.