mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-21 00:48:36 +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
|
||||
set -e
|
||||
|
||||
export XDG_CONFIG_HOME="$SNAP_REAL_HOME/.config"
|
||||
export XDG_DATA_HOME="$SNAP_REAL_HOME/.local/share"
|
||||
# Set these to reasonable defaults if not already set
|
||||
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"
|
||||
|
||||
if [ "$SNAP_ARCH" = "amd64" ]; then
|
||||
|
Reference in New Issue
Block a user