diff options
author | Mattias Andrée <maandree@kth.se> | 2021-06-26 15:27:10 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-06-26 15:27:10 +0200 |
commit | 60fee1638a52c85f06aadf67dff35820ca02ea1b (patch) | |
tree | db9759251acb6eb3224131c767b98625390f2dcb /xorg-xinit | |
parent | Add plumb script (diff) | |
download | dotfiles-60fee1638a52c85f06aadf67dff35820ca02ea1b.tar.gz dotfiles-60fee1638a52c85f06aadf67dff35820ca02ea1b.tar.bz2 dotfiles-60fee1638a52c85f06aadf67dff35820ca02ea1b.tar.xz |
Add startx wrapper that wrapps startx with orphan-reaper
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'xorg-xinit')
-rw-r--r-- | xorg-xinit/Makefile | 5 | ||||
-rwxr-xr-x | xorg-xinit/startx | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/xorg-xinit/Makefile b/xorg-xinit/Makefile index 0d017d6..6c314bd 100644 --- a/xorg-xinit/Makefile +++ b/xorg-xinit/Makefile @@ -24,6 +24,10 @@ install: mkdir -p -- ~/.config/X11/xinit/xinitrc.d test ! -d ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xorg-xinit ln -sf -- ~/.dotfiles/xorg-xinit/xinit ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xorg-xinit + if test -x /usr/bin/orphan-reaper; then \ + mkdir -p -- ~/.local/bin && \ + ln -sf -- ~/.dotfiles/xorg-xinit/startx ~/.local/bin/; \ + fi uninstall: -unlink -- ~/.config/bash/aliases.d/xorg-xinit @@ -33,5 +37,6 @@ uninstall: -rmdir -- ~/.config/X11/xinit/xinitrc.d -rmdir -- ~/.config/X11/xinit -rmdir -- ~/.config/X11 + -unlink -- ~/.local/bin/startx .PHONY: install uninstall diff --git a/xorg-xinit/startx b/xorg-xinit/startx new file mode 100755 index 0000000..1f2225b --- /dev/null +++ b/xorg-xinit/startx @@ -0,0 +1,7 @@ +#!/bin/sh + +if test -x /usr/local/bin/startx; then + exec orphan-reaper -f -- /usr/local/bin/startx "$@" +else + exec orphan-reaper -f -- /usr/bin/startx "$@" +fi |