mostly fixes
[distro-setup] / subdir_files / .config / systemd / user / profanity.service
diff --git a/subdir_files/.config/systemd/user/profanity.service b/subdir_files/.config/systemd/user/profanity.service
new file mode 100644 (file)
index 0000000..ed713cd
--- /dev/null
@@ -0,0 +1,18 @@
+[Unit]
+Description=profanity
+# background: i originally started profanity as a system service after
+# networking-online.target but strangely, it had a hidden lock on /p
+# preventing it from unmounting, and the only thing in /p i can see it
+# using is gpg. I could try to get this to run after the last target,
+# which is default.target, but all I can find documented on how to do
+# this is to do this strange unexplained thing of making a new target,
+# aliasing it to the default target and also make it
+# After=default.target. I figured this probably works and is simpler.
+After=gpg-agent.service
+
+[Service]
+# bash is required to get colors working
+ExecStart=/usr/bin/screen -S profanity -Dm /bin/bash -c profanity
+
+[Install]
+WantedBy=default.target