From c9100217ac5e8bce7b6b16b1b106ec8488d4b6d2 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Sun, 10 Nov 2019 17:39:26 +0000 Subject: [PATCH] Fix NetBSD xsession creation --- .../home-gui/files/{xsession => xsession-freebsd} | 0 roles/home-gui/files/xsession-netbsd | 3 +++ roles/home-gui/tasks/dotfiles.yml | 15 +++++++++++++++ roles/home-gui/tasks/mate.yml | 5 ----- 4 files changed, 18 insertions(+), 5 deletions(-) rename roles/home-gui/files/{xsession => xsession-freebsd} (100%) create mode 100644 roles/home-gui/files/xsession-netbsd diff --git a/roles/home-gui/files/xsession b/roles/home-gui/files/xsession-freebsd similarity index 100% rename from roles/home-gui/files/xsession rename to roles/home-gui/files/xsession-freebsd diff --git a/roles/home-gui/files/xsession-netbsd b/roles/home-gui/files/xsession-netbsd new file mode 100644 index 0000000..5c2f200 --- /dev/null +++ b/roles/home-gui/files/xsession-netbsd @@ -0,0 +1,3 @@ +PATH=/usr/bin:/bin:/usr/X11R7/bin:/usr/pkg/bin +xrdb -merge ~/.Xresources +exec mwm diff --git a/roles/home-gui/tasks/dotfiles.yml b/roles/home-gui/tasks/dotfiles.yml index 7117eb9..edfdc36 100644 --- a/roles/home-gui/tasks/dotfiles.yml +++ b/roles/home-gui/tasks/dotfiles.yml @@ -27,3 +27,18 @@ copy: src: 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 diff --git a/roles/home-gui/tasks/mate.yml b/roles/home-gui/tasks/mate.yml index dc2467e..af9ae51 100644 --- a/roles/home-gui/tasks/mate.yml +++ b/roles/home-gui/tasks/mate.yml @@ -32,8 +32,3 @@ key: /org/mate/panel/objects/clock/prefs/expand-locations value: 'true' when: ansible_system == 'Linux' -- name: Create xsession file - copy: - src: xsession - dest: "{{ ansible_env.HOME }}/.xsession" - when: ansible_system == "FreeBSD"