~mil/sxmo-utils

90ddbc3e74e24182a34ad239aed9b26fb271e9bb — Anjandev Momi 1 year, 2 months ago 9b88aeb
move dwm.log to $XDG_CACHE_HOME
1 files changed, 8 insertions(+), 3 deletions(-)

M scripts/core/sxmo_xinit.sh
M scripts/core/sxmo_xinit.sh => scripts/core/sxmo_xinit.sh +8 -3
@@ 18,10 18,14 @@ envvars() {
	[ -z "$XDG_PICTURES_DIR" ] && export XDG_PICTURES_DIR=~/Pictures
}

setupxdgruntimedir() {
setupxdgdir() {
	mkdir -p $XDG_RUNTIME_HOME
	chmod 700 $XDG_RUNTIME_HOME
	chown "$USER:$USER" "$XDG_RUNTIME_HOME"

	mkdir -p "$XDG_CACHE_HOME/sxmo/"
	chmod 700 "$XDG_CACHE_HOME"
	chown "$USER:$USER" "$XDG_CACHE_HOME"
}

xdefaults() {


@@ 69,16 73,17 @@ customxinit() {
}

startdwm() {

	exec dbus-run-session sh -c "
		$0 daemonsneedingdbus;
		. $0 customxinit;
		dwm 2> ~/.dwm.log
		dwm 2> "$XDG_CACHE_HOME/sxmo/dwm.log"
	"
}

xinit() {
	envvars
	setupxdgruntimedir
	setupxdgdir
	xdefaults
	daemons
	startdwm