Get rid of xdg-user-dirs

This commit is contained in:
2024-04-14 01:54:23 +02:00
parent ff70e29117
commit 97409130ab
3 changed files with 13 additions and 2 deletions

View File

@@ -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

View File

@@ -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:

View 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() {