Fix NetBSD xsession creation

This commit is contained in:
Anthony Rose 2019-11-10 17:39:26 +00:00
parent 048024de4e
commit c9100217ac
4 changed files with 18 additions and 5 deletions

View file

@ -0,0 +1,3 @@
PATH=/usr/bin:/bin:/usr/X11R7/bin:/usr/pkg/bin
xrdb -merge ~/.Xresources
exec mwm

View file

@ -27,3 +27,18 @@
copy: copy:
src: xclock.desktop src: xclock.desktop
dest: "{{ ansible_env.HOME }}/.config/autostart/xclock.desktop" dest: "{{ ansible_env.HOME }}/.config/autostart/xclock.desktop"
- name: Create FreeBSD xsession file
copy:
src: xsession-freebsd
dest: "{{ ansible_env.HOME }}/.xsession"
when: ansible_system == "FreeBSD"
- name: Create NetBSD xsession file
copy:
src: xsession-netbsd
dest: "{{ ansible_env.HOME }}/.xsession"
when: ansible_system == "NetBSD"
- name: Create xinitrc symlink
file:
src: ".xsession"
dest: "{{ ansible_env.HOME }}/.xinitrc"
state: link

View file

@ -32,8 +32,3 @@
key: /org/mate/panel/objects/clock/prefs/expand-locations key: /org/mate/panel/objects/clock/prefs/expand-locations
value: 'true' value: 'true'
when: ansible_system == 'Linux' when: ansible_system == 'Linux'
- name: Create xsession file
copy:
src: xsession
dest: "{{ ansible_env.HOME }}/.xsession"
when: ansible_system == "FreeBSD"