Use XDG_RUNTIME_DIR instead of ~/.var/run
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
After=windowmanager.target
|
After=windowmanager.target
|
||||||
ConditionPathExists=%h/.var/run/features/gpg_agent
|
ConditionPathExists=%t/features/gpg_agent
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
After=windowmanager.target
|
After=windowmanager.target
|
||||||
ConditionPathExists=%h/.var/run/features/keepassx
|
ConditionPathExists=%t/features/keepassx
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/env keepassx --keyfile %h/.secret/main.key %h/.secret/main.kdbx
|
ExecStart=/usr/bin/env keepassx --keyfile %h/.secret/main.key %h/.secret/main.kdbx
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
After=windowmanager.target
|
After=windowmanager.target
|
||||||
ConditionPathExists=%h/.var/run/features/machine_is_laptop
|
ConditionPathExists=%t/features/machine_is_laptop
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ BindsTo=autostart.target
|
|||||||
After=windowmanager.target
|
After=windowmanager.target
|
||||||
After=gnome-keyring.service
|
After=gnome-keyring.service
|
||||||
|
|
||||||
ConditionPathExists=%h/.var/run/features/nextcloud
|
ConditionPathExists=%t/features/nextcloud
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/env nextcloud --background
|
ExecStart=/usr/bin/env nextcloud --background
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
ConditionPathExists=%h/.var/run/features/restic_backup
|
ConditionPathExists=%t/features/restic_backup
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ BindsTo=autostart.target
|
|||||||
After=windowmanager.target
|
After=windowmanager.target
|
||||||
After=i3.service
|
After=i3.service
|
||||||
|
|
||||||
ConditionPathExists=%h/.var/run/features/steam
|
ConditionPathExists=%t/features/steam
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/env steam
|
ExecStart=/usr/bin/env steam
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
After=windowmanager.target
|
After=windowmanager.target
|
||||||
ConditionPathExists=%h/.var/run/features/machine_is_laptop
|
ConditionPathExists=%t/features/machine_is_laptop
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|||||||
1
user.yml
1
user.yml
@@ -246,7 +246,6 @@
|
|||||||
- ~/tmp
|
- ~/tmp
|
||||||
- ~/.var/lib
|
- ~/.var/lib
|
||||||
- ~/.var/log
|
- ~/.var/log
|
||||||
- ~/.var/run
|
|
||||||
- ~/.usr/lib
|
- ~/.usr/lib
|
||||||
|
|
||||||
- name: stat ~/bin
|
- name: stat ~/bin
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ export LESS="FRX"
|
|||||||
export WINEPATH="$HOME/games/wine"
|
export WINEPATH="$HOME/games/wine"
|
||||||
|
|
||||||
export LOGDIR="$HOME/.var/log"
|
export LOGDIR="$HOME/.var/log"
|
||||||
export RUNDIR="$HOME/.var/run"
|
|
||||||
export LIBDIR="$HOME/.var/lib"
|
export LIBDIR="$HOME/.var/lib"
|
||||||
export BINDIR="$HOME/bin"
|
export BINDIR="$HOME/bin"
|
||||||
|
|
||||||
@@ -53,7 +52,7 @@ umask 0022
|
|||||||
export {{ k }}="{{ v }}"
|
export {{ k }}="{{ v }}"
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
export FEATURE_DIR="${RUNDIR}/features/"
|
export FEATURE_DIR="${XDG_RUNTIME_DIR}/features/"
|
||||||
rm -rf "${FEATURE_DIR}"/
|
rm -rf "${FEATURE_DIR}"/
|
||||||
mkdir -p "${FEATURE_DIR}"
|
mkdir -p "${FEATURE_DIR}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user