Get rid of xdg-user-dirs
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/bin/env i3 --config %h/.i3/config
|
ExecStart=/usr/bin/env i3 --config %h/.config/i3/config
|
||||||
PassEnvironment=DISPLAY
|
PassEnvironment=DISPLAY
|
||||||
|
|
||||||
Restart=no
|
Restart=no
|
||||||
|
|||||||
12
user.yml
12
user.yml
@@ -54,6 +54,17 @@
|
|||||||
- "/home/{{ user.name }}/.config/systemd/"
|
- "/home/{{ user.name }}/.config/systemd/"
|
||||||
- "/home/{{ user.name }}/.config/systemd/user/"
|
- "/home/{{ user.name }}/.config/systemd/user/"
|
||||||
|
|
||||||
|
- name: stop xdg-user-dirs service
|
||||||
|
systemd_service:
|
||||||
|
name: xdg-user-dirs-update.service
|
||||||
|
scope: user
|
||||||
|
state: stopped
|
||||||
|
|
||||||
|
- name: remove xdg user directory configuration
|
||||||
|
file:
|
||||||
|
path: "/home/{{ user.name }}/.config/user-dirs.dirs"
|
||||||
|
state: absent
|
||||||
|
|
||||||
# No way to use the `systemd` module here, as it needs a logind
|
# No way to use the `systemd` module here, as it needs a logind
|
||||||
# session. So we have to handle the symlinks for masking ourselves.
|
# session. So we have to handle the symlinks for masking ourselves.
|
||||||
- name: disable and mask systemd user units
|
- name: disable and mask systemd user units
|
||||||
@@ -66,6 +77,7 @@
|
|||||||
- gpg-agent-browser.socket
|
- gpg-agent-browser.socket
|
||||||
- gpg-agent-ssh.socket
|
- gpg-agent-ssh.socket
|
||||||
- gpg-agent-extra.socket
|
- gpg-agent-extra.socket
|
||||||
|
- xdg-user-dirs-update.service
|
||||||
|
|
||||||
- name: create directory for getty autologin
|
- name: create directory for getty autologin
|
||||||
file:
|
file:
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ start_wm() {
|
|||||||
sleep 1
|
sleep 1
|
||||||
systemctl --user start autostart.target
|
systemctl --user start autostart.target
|
||||||
sleep inf
|
sleep inf
|
||||||
# exec systemd-run --user --unit i3_user --pty --setenv=DISPLAY=${DISPLAY} i3 -c "$HOME/.i3/config" >> "$LOGDIR/i3/i3.log"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
autostart() {
|
autostart() {
|
||||||
|
|||||||
Reference in New Issue
Block a user