[Unit]
-Description=Starts the session of afm user %i
+Description=Initiate afm-user-session %i
After=systemd-user-sessions.service
Wants=afm-user-setup@%i.service
Before=afm-user-setup@%i.service
[Unit]
-After=afm-user-session@%i.service
+Description=Target group of afm-user-session %i
+Requires=afm-user-setup@%i.service
After=afm-user-setup@%i.service
[Unit]
+Description=Path for setup completion of afm-user-session %i
DefaultDependencies=false
[Path]
PathExists=/run/user/%i/wayland-0
[Unit]
-Description=Starts the session of afm user %i
+Description=Setup completion of afm-user-session %i
Requires=afm-user-setup@%i.path
After=afm-user-setup@%i.path
+Requires=afm-user-session@%i.service
After=afm-user-session@%i.service
Before=afm-user-session@%i.target
-After=user@%i.service
[Service]
User=%i
Type=oneshot
-ExecStartPre=/bin/echo USER SETUP %i
-ExecStartPre=/bin/systemctl status
ExecStart=/bin/rm /run/user/%i/afm-user-started
X-AFM--wgtdir={{:#metadata.install-dir}}
X-AFM--workdir=/home/%i/app-data/{{:id}}
%nl
-Wants=afm-user-session@%i.target
+Requires=afm-user-session@%i.target
+Requires=afm-user-setup@%i.service
After=afm-user-setup@%i.service
# Adds check to smack
ConditionSecurity=smack
%systemd-unit socket afm-api-ws-{{name}}@
[Unit]
Description=Provides api {{name}} for user %i
+Requires=afm-user-setup@%i.service
After=afm-user-setup@%i.service
[Socket]
SmackLabel=*
X-AFM--wgtdir={{:#metadata.install-dir}}
X-AFM--workdir=/home/%i/app-data/{{:id}}
%nl
-Wants=afm-user-session@%i.target
+Requires=afm-user-session@%i.target
+Requires=afm-user-setup@%i.service
After=afm-user-setup@%i.service
# Adds check to smack
ConditionSecurity=smack
%systemd-unit socket afm-api-ws-{{name}}@
[Unit]
Description=Provides api {{name}} for user %i
+Requires=afm-user-setup@%i.service
After=afm-user-setup@%i.service
[Socket]
SmackLabel=*
%systemd-unit socket afm-api-ws-{{name}}@
[Unit]
Description=Provides api {{name}} for user %i
+Requires=afm-user-setup@%i.service
After=afm-user-setup@%i.service
[Socket]
X-AFM--workdir=APP_DATA_DIR/{{:id}}
%nl
-Wants=afm-user-session@%i.target
+Requires=afm-user-session@%i.target
+Requires=afm-user-setup@%i.service
After=afm-user-setup@%i.service
# Adds check to smack