workflows/mosey-branch: update systemd units

This commit is contained in:
Gabriel Arazas 2023-08-18 22:29:27 +08:00
parent ebafb21bfd
commit 609040329a
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
5 changed files with 15 additions and 7 deletions

View File

@ -6,9 +6,11 @@ RefuseManualStop=true
After=gnome-session-initialized.target After=gnome-session-initialized.target
PartOf=@app_id@.@component@.target # These are implied to be `Before=gnome-session.target` since we're packing
# them all up in the override configuration of the session target anyways.
Requisite=@app_id@.@component@.target Requisite=@app_id@.@component@.target
Before=@app_id@.@component@.target Before=@app_id@.@component@.target
PartOf=@app_id@.@component@.target
[Service] [Service]
Slice=session.slice Slice=session.slice

View File

@ -1,12 +1,12 @@
[Unit] [Unit]
Description=@description@ Description=@description@
Documentation=man:gnome-session(1) man:systemd.special(7)
CollectMode=inactive-or-failed CollectMode=inactive-or-failed
# Pull in the service. # Pull in the service.
Wants=@app_id@.@component@.service Wants=@app_id@.@component@.service
# Require GNOME session and do some reordering. # Require GNOME session and do some reordering.
Requisite=gnome-session-initialized.target
PartOf=gnome-session-initialized.target PartOf=gnome-session-initialized.target
After=gnome-session-initialized.target After=gnome-session-initialized.target
Before=gnome-session.target Before=gnome-session.target

View File

@ -1,6 +1,6 @@
# This user service is intended to be started with gnome-session. # This user service is intended to be started with gnome-session.
[Unit] [Unit]
Description=Mosey Branch, a custom desktop session with Hyprland Description=Mosey Branch desktop environment
Documentation=https://wiki.hyprland.org Documentation=https://wiki.hyprland.org
After=gnome-manager-manager.target After=gnome-manager-manager.target
@ -13,10 +13,16 @@ CollectMode=inactive-or-failed
RefuseManualStart=true RefuseManualStart=true
RefuseManualStop=true RefuseManualStop=true
StartLimitIntervalSec=15
StartLimitBurst=4 StartLimitBurst=4
[Service] [Service]
Type=notify
Slice=session.slice Slice=session.slice
Restart=on-failure Restart=on-failure
ExecStart=@script@ ExecStart=@script@
Type=notify
NotifyAccess=all
OOMScoreAdjust=-1000
TimeoutStopSec=5

View File

@ -1,4 +1,4 @@
[GNOME Session] [GNOME Session]
Name=Mosey Branch Name=Mosey Branch session
# Must be in sync with gnome-session@mosey-branch.target.d/session.conf drop-in. # Must be in sync with gnome-session@mosey-branch.target.d/session.conf drop-in.
RequiredComponents=@required_components@ RequiredComponents=@required_components@

View File

@ -1,6 +1,6 @@
[Unit] [Unit]
Description=Mosey Branch Description=Mosey Branch session
Documentation=man:systemd.special(7) Documentation=man:gnome-session(1) man:systemd.special(7)
DefaultDependencies=no DefaultDependencies=no
Requisite=gnome-session-initialized.target Requisite=gnome-session-initialized.target