mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-18 01:36:08 +03:00
Unset environment varies set by the snap
This commit is contained in:

committed by
Mitchell Hashimoto

parent
cee189de11
commit
c036eb2444
@ -732,6 +732,19 @@ const Subprocess = struct {
|
|||||||
try env.put("GHOSTTY_RESOURCES_DIR", dir);
|
try env.put("GHOSTTY_RESOURCES_DIR", dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Unset environment varies set by the snap
|
||||||
|
if (env.get("SNAP") != null) {
|
||||||
|
env.remove("SNAP");
|
||||||
|
env.remove("DRIRC_CONFIGDIR");
|
||||||
|
env.remove("__EGL_EXTERNAL_PLATFORM_CONFIG_DIRS");
|
||||||
|
env.remove("__EGL_VENDOR_LIBRARY_DIRS");
|
||||||
|
env.remove("LD_LIBRARY_PATH");
|
||||||
|
env.remove("LIBGL_DRIVERS_PATH");
|
||||||
|
env.remove("LIBVA_DRIVERS_PATH");
|
||||||
|
env.remove("VK_LAYER_PATH");
|
||||||
|
env.remove("XLOCALEDIR");
|
||||||
|
}
|
||||||
|
|
||||||
// Set our TERM var. This is a bit complicated because we want to use
|
// Set our TERM var. This is a bit complicated because we want to use
|
||||||
// the ghostty TERM value but we want to only do that if we have
|
// the ghostty TERM value but we want to only do that if we have
|
||||||
// ghostty in the TERMINFO database.
|
// ghostty in the TERMINFO database.
|
||||||
|
Reference in New Issue
Block a user