Browse Source

profile xsessionrc

systemd-xsession
parent
commit
dd548394d0
2 changed files with 12 additions and 0 deletions
  1. +1
    -0
      tasks/x11.yaml
  2. +11
    -0
      templates/x11/xsessionrc.j2

+ 1
- 0
tasks/x11.yaml View File

@@ -26,3 +26,4 @@
template: template:
src: x11/xsessionrc.j2 src: x11/xsessionrc.j2
dest: ~/.xsessionrc dest: ~/.xsessionrc
mode: 0755

+ 11
- 0
templates/x11/xsessionrc.j2 View File

@@ -1,3 +1,14 @@
#!/bin/bash

{{ansible_managed|comment}} {{ansible_managed|comment}}


if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi

exec fish ~/.xsession.fish exec fish ~/.xsession.fish