mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-06-01 04:58:37 +03:00
Clean up environment variable while launching the shell
This commit is contained in:

committed by
Mitchell Hashimoto

parent
c036eb2444
commit
f239df59ca
@ -30,7 +30,6 @@ export VK_LAYER_PATH=${VK_LAYER_PATH:+$VK_LAYER_PATH:}${SNAP}/usr/share/vulkan/i
|
||||
export XDG_DATA_DIRS=${XDG_DATA_DIRS:+$XDG_DATA_DIRS:}${SNAP}/usr/share
|
||||
export XLOCALEDIR="${SNAP}/usr/share/X11/locale"
|
||||
|
||||
export LIBGL_DRIVERS_PATH
|
||||
if [ "${__NV_PRIME_RENDER_OFFLOAD:-}" != 1 ]; then
|
||||
# Prevent picking VA-API (Intel/AMD) over NVIDIA VDPAU
|
||||
# https://download.nvidia.com/XFree86/Linux-x86_64/510.54/README/primerenderoffload.html#configureapplications
|
||||
@ -39,7 +38,7 @@ fi
|
||||
|
||||
# Unset all SNAP specific environment variables to keep them from leaking
|
||||
# into other snaps that might get executed from within the shell
|
||||
for var in $(printenv | grep SNAP | cut -d= -f1); do
|
||||
for var in $(printenv | grep SNAP_ | cut -d= -f1); do
|
||||
unset $var
|
||||
done
|
||||
|
||||
|
@ -95,7 +95,6 @@ parts:
|
||||
- libsensors5
|
||||
- libllvm17
|
||||
- libunistring5
|
||||
- gnome-text-editor # Needed for config editor
|
||||
- on amd64: [i965-va-driver,libdrm-intel1,libdrm-nouveau2,libdrm-amdgpu1,libdrm-radeon1]
|
||||
stage:
|
||||
# The libraries in dri need no-patchelf, so they come from the mesa-unpatched part
|
||||
|
Reference in New Issue
Block a user