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:
parent
69787bd90f
commit
8142cdf82f
@ -1 +0,0 @@
|
|||||||
/usr/lib/systemd/user/redshift.service
|
|
@ -1,2 +1,5 @@
|
|||||||
[Service]
|
[Service]
|
||||||
Slice=session.slice
|
Slice=session.slice
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=graphical-session.target
|
||||||
|
15
systemd/user/graphical-session.target
Normal file
15
systemd/user/graphical-session.target
Normal 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
|
@ -1 +0,0 @@
|
|||||||
/home/frebib/.config/systemd/user/autocutsel-primary.service
|
|
@ -1 +0,0 @@
|
|||||||
/home/frebib/.config/systemd/user/autocutsel.service
|
|
1
systemd/user/graphical-session.target.wants/redshift.service
Symbolic link
1
systemd/user/graphical-session.target.wants/redshift.service
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/home/frebib/.config/systemd/user/redshift.service
|
@ -1 +0,0 @@
|
|||||||
/home/frebib/.config/systemd/user/xautolock.service
|
|
13
systemd/user/redshift.service
Normal file
13
systemd/user/redshift.service
Normal 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
|
@ -1,2 +0,0 @@
|
|||||||
[Service]
|
|
||||||
Slice=session.slice
|
|
Loading…
Reference in New Issue
Block a user