mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-20 16:38:38 +03:00
Only export XDG_CONFIG_HOME and XDG_DATA_HOME if they aren't already set
This commit is contained in:

committed by
Mitchell Hashimoto

parent
5841a4f958
commit
7e5c57a848
@ -1,8 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
export XDG_CONFIG_HOME="$SNAP_REAL_HOME/.config"
|
# Set these to reasonable defaults if not already set
|
||||||
export XDG_DATA_HOME="$SNAP_REAL_HOME/.local/share"
|
if [ -z "$XDG_CONFIG_HOME" ]; then
|
||||||
|
export XDG_CONFIG_HOME="$SNAP_REAL_HOME/.config"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$XDG_DATA_HOME" ]; then
|
||||||
|
export XDG_DATA_HOME="$SNAP_REAL_HOME/.local/share"
|
||||||
|
fi
|
||||||
|
|
||||||
export HOME="$SNAP_REAL_HOME"
|
export HOME="$SNAP_REAL_HOME"
|
||||||
|
|
||||||
if [ "$SNAP_ARCH" = "amd64" ]; then
|
if [ "$SNAP_ARCH" = "amd64" ]; then
|
||||||
|
Reference in New Issue
Block a user