summaryrefslogtreecommitdiffstats
path: root/net-misc/xrdp/files/startwm.sh
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-07-28 23:05:13 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2023-07-28 23:05:13 +0200
commit27645271741816b974166b4263724c323b897bbd (patch)
tree67ef2c950137ec25b75a1842a61133b24f0ca639 /net-misc/xrdp/files/startwm.sh
parentchirp (diff)
downloadg-27645271741816b974166b4263724c323b897bbd.tar
g-27645271741816b974166b4263724c323b897bbd.tar.gz
g-27645271741816b974166b4263724c323b897bbd.tar.bz2
g-27645271741816b974166b4263724c323b897bbd.tar.lz
g-27645271741816b974166b4263724c323b897bbd.tar.xz
g-27645271741816b974166b4263724c323b897bbd.tar.zst
g-27645271741816b974166b4263724c323b897bbd.zip
Diffstat (limited to 'net-misc/xrdp/files/startwm.sh')
-rw-r--r--net-misc/xrdp/files/startwm.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/net-misc/xrdp/files/startwm.sh b/net-misc/xrdp/files/startwm.sh
new file mode 100644
index 0000000..751c26a
--- /dev/null
+++ b/net-misc/xrdp/files/startwm.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# try hard to respect Gentoo's wm choice
+. /etc/profile
+[ -f /etc/rc.conf ] && . /etc/rc.conf
+export XSESSION
+
+USERINITRC="$HOME/.xinitrc"
+if [ -f "$USERINITRC" ]; then
+ . "$USERINITRC"
+else
+ . /etc/X11/xinit/xinitrc
+fi