More properly wrap X-specific preexecute functions
This commit is contained in:
parent
241085b08f
commit
f74783a659
@ -377,6 +377,8 @@ step_preexecute() {
|
||||
# Disabled here because an XDGCD of KDE implies kded and other KDE parts, breaking copypasta and other things
|
||||
#export XDG_CURRENT_DESKTOP="KDE"
|
||||
fi
|
||||
# X-specific stuff
|
||||
if [ -n "$DISPLAY" ]; then
|
||||
# xhost
|
||||
if has xhost; then
|
||||
if xhost +si:localuser:"$(id -un)" >/dev/null 2>&1; then
|
||||
@ -386,7 +388,7 @@ step_preexecute() {
|
||||
fi
|
||||
fi
|
||||
# xresources
|
||||
if [ -n "$DISPLAY" ] && has xrdb && [ -r "$HOME/.Xresources" ]; then
|
||||
if has xrdb && [ -r "$HOME/.Xresources" ]; then
|
||||
if xrdb "$HOME/.Xresources" >/dev/null 2>&1; then
|
||||
log "Loaded in .Xresources"
|
||||
else
|
||||
@ -405,6 +407,7 @@ step_preexecute() {
|
||||
log "Disabling DPMS"
|
||||
xset s off -dpms
|
||||
fi
|
||||
fi
|
||||
}
|
||||
step_postexecute() {
|
||||
# Wait for the WM to initialize, if one was found and we have the tools
|
||||
|
Loading…
x
Reference in New Issue
Block a user