Xmd session sets more X environment variables
This commit is contained in:
parent
1c1331e166
commit
80d28f7004
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user