public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Arsen Arsenović" <arsen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: gui-apps/foot/files/, gui-apps/foot/
Date: Mon, 10 Mar 2025 18:26:37 +0000 (UTC)	[thread overview]
Message-ID: <1741631056.5e79220360acb5db2c897c58606aae444e0db3b4.arsen@gentoo> (raw)

commit:     5e79220360acb5db2c897c58606aae444e0db3b4
Author:     Anna (navi) Figueiredo Gomes <navi <AT> vlhl <DOT> dev>
AuthorDate: Tue Mar  4 21:36:45 2025 +0000
Commit:     Arsen Arsenović <arsen <AT> gentoo <DOT> org>
CommitDate: Mon Mar 10 18:24:16 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e792203

gui-apps/foot: add user initd

Signed-off-by: Anna (navi) Figueiredo Gomes <navi <AT> vlhl.dev>
Closes: https://github.com/gentoo/gentoo/pull/40896
Signed-off-by: Arsen Arsenović <arsen <AT> gentoo.org>

 gui-apps/foot/files/foot.initd                             | 14 ++++++++++++++
 .../foot/{foot-1.20.2-r1.ebuild => foot-1.20.2-r2.ebuild}  |  2 ++
 2 files changed, 16 insertions(+)

diff --git a/gui-apps/foot/files/foot.initd b/gui-apps/foot/files/foot.initd
new file mode 100644
index 000000000000..458618e8d006
--- /dev/null
+++ b/gui-apps/foot/files/foot.initd
@@ -0,0 +1,14 @@
+#!/sbin/openrc-run
+
+description="Foot terminal server mode"
+
+supervisor=supervise-daemon
+command="/usr/bin/foot"
+command_args="--server"
+
+start_pre() {
+	if [ -z "$WAYLAND_DISPLAY" ]; then
+		eerror "$WAYLAND_DISPLAY unset, can't proceed."
+		return 1
+	fi
+}

diff --git a/gui-apps/foot/foot-1.20.2-r1.ebuild b/gui-apps/foot/foot-1.20.2-r2.ebuild
similarity index 96%
rename from gui-apps/foot/foot-1.20.2-r1.ebuild
rename to gui-apps/foot/foot-1.20.2-r2.ebuild
index 3f5d883449d7..f7f2e0f434e8 100644
--- a/gui-apps/foot/foot-1.20.2-r1.ebuild
+++ b/gui-apps/foot/foot-1.20.2-r2.ebuild
@@ -82,6 +82,8 @@ src_configure() {
 src_install() {
 	meson_src_install
 
+	exeinto /etc/user/init.d
+	newexe "${FILESDIR}/foot.initd" foot
 	systemd_douserunit foot-server.service "${S}"/foot-server.socket
 }
 


                 reply	other threads:[~2025-03-10 18:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1741631056.5e79220360acb5db2c897c58606aae444e0db3b4.arsen@gentoo \
    --to=arsen@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox