1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

systemd: add missing WantedBy= properties to user units

This fixes some inconsistent and incorrect startup order of the
graphical and desktop targets. xprofile will now always run as part of
xorg.target, which is before all other X-related applications that
require those settings to be in place beforehand.

Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
Joe Groocock 2021-02-01 13:44:12 +00:00
parent 69787bd90f
commit 8142cdf82f
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86
10 changed files with 32 additions and 6 deletions

View File

@ -1 +0,0 @@
/usr/lib/systemd/user/redshift.service

View File

@ -1,2 +1,5 @@
[Service]
Slice=session.slice
[Install]
WantedBy=graphical-session.target

View File

@ -0,0 +1,15 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Current graphical user session
Documentation=man:systemd.special(7)
Requires=basic.target xorg.target
RefuseManualStart=yes
StopWhenUnneeded=yes

View File

@ -1 +0,0 @@
/home/frebib/.config/systemd/user/autocutsel-primary.service

View File

@ -1 +0,0 @@
/home/frebib/.config/systemd/user/autocutsel.service

View File

@ -0,0 +1 @@
/home/frebib/.config/systemd/user/redshift.service

View File

@ -1 +0,0 @@
/home/frebib/.config/systemd/user/xautolock.service

View File

@ -0,0 +1,13 @@
[Unit]
Description=Redshift display colour temperature adjustment
Documentation=http://jonls.dk/redshift/
Requires=xorg.target
ConditionPathExists=/usr/bin/redshift
[Service]
Slice=session.slice
ExecStart=/usr/bin/redshift
Restart=always
[Install]
WantedBy=graphical-session.target

View File

@ -1,2 +0,0 @@
[Service]
Slice=session.slice