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:
@@ -1 +0,0 @@
|
||||
/usr/lib/systemd/user/redshift.service
|
||||
@@ -1,2 +1,5 @@
|
||||
[Service]
|
||||
Slice=session.slice
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
||||
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
/home/frebib/.config/systemd/user/redshift.service
|
||||
@@ -1 +0,0 @@
|
||||
/home/frebib/.config/systemd/user/xautolock.service
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user