Xmd session sets more X environment variables

This commit is contained in:
Sasha Koshka 2024-02-01 00:40:38 -05:00
parent 1c1331e166
commit 80d28f7004

View File

@ -1,16 +1,23 @@
#!/bin/sh #!/bin/sh
# basic Xmd environment variables
export XMD_SESSION_PID="$$" export XMD_SESSION_PID="$$"
export XMD_USERDIR="${HOME}/.Xmd" export XMD_USERDIR="${HOME}/.Xmd"
mkdir -p "${XMD_USERDIR}" mkdir -p "${XMD_USERDIR}"
# environment vars that X applications tend to expect
export XDG_CURRENT_DESKTOP=Xmd
export XDG_SESSION_DESKTOP=Xmd
export XDG_SESSION_TYPE=X11
# replicant path
export XMD_REPLICANT_PATH="/usr/lib/Xmd/replicants:/usr/local/lib/Xmd/replicants" export XMD_REPLICANT_PATH="/usr/lib/Xmd/replicants:/usr/local/lib/Xmd/replicants"
localReplicantDir="$HOME/.local/lib/Xmd/replicants" localReplicantDir="$HOME/.local/lib/Xmd/replicants"
if [ -d "$localReplicantDir" ]; then if [ -d "$localReplicantDir" ]; then
export XMD_REPLICANT_PATH="$localReplicantDir:$XMD_REPLICANT_PATH" export XMD_REPLICANT_PATH="$localReplicantDir:$XMD_REPLICANT_PATH"
fi fi
# load desktop configuration
xmd-load-xresources xmd-load-xresources
appDefaults="${XMD_USERDIR}/app-defaults" appDefaults="${XMD_USERDIR}/app-defaults"
if [ -d "$appDefaults" ]; then if [ -d "$appDefaults" ]; then
@ -20,6 +27,7 @@ else
fi fi
xmd-load-wallpaper xmd-load-wallpaper
# run startup items
startupDir="$XMD_USERDIR/startup" startupDir="$XMD_USERDIR/startup"
if [ -d "$startupDir" ]; then if [ -d "$startupDir" ]; then
export XMD_STARTUPDIR="$startupDir" export XMD_STARTUPDIR="$startupDir"