public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Aleksei Bavshin <alebastr@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/waybar] f44: systemd: declare known incompatible desktop environments
Date: Mon, 03 Aug 2026 04:27:05 GMT	[thread overview]
Message-ID: <178573122537.1.2904744705432823029.rpms-waybar-317660bab4d1@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/waybar
Branch : f44
Commit : 317660bab4d191d790e05f9310a921945ee4a4d2
Author : Aleksei Bavshin <alebastr@fedoraproject.org>
Date   : 2026-08-02T21:11:42-07:00
Stats  : +46/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/waybar/c/317660bab4d191d790e05f9310a921945ee4a4d2?branch=f44

Log:
systemd: declare known incompatible desktop environments

---
diff --git a/waybar-fedora-systemd-target-conflicts.patch b/waybar-fedora-systemd-target-conflicts.patch
new file mode 100644
index 0000000..f277e2e
--- /dev/null
+++ b/waybar-fedora-systemd-target-conflicts.patch
@@ -0,0 +1,39 @@
+From f67dcce02d02ef1dc8e78efc565647b6fe8656d4 Mon Sep 17 00:00:00 2001
+From: Aleksei Bavshin <alebastr89@gmail.com>
+Date: Sat, 4 Jul 2026 22:51:31 -0700
+Subject: [PATCH] systemd: declare known incompatible desktop environments
+
+Waybar can be used with many different Wayland compositors. Some of
+those provide distinct user session targets, some aren't. The usual
+recommendation for the latter ones is to allow manual startup of the
+graphical-session.target and run "systemd --user start ..." command on
+init.
+
+To ensure that all of the above is supported, we have to keep the
+service bound to the graphical-session.target. However, this may impact
+unrelated sessions on machines with multiple DEs installed.
+
+Instead of listing dozens of supported Wayland compositors and breaking
+any configs that explicitly use graphical-session.target, keep a list
+of known sessions where Waybar is not wanted.
+---
+ resources/waybar.service.in | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/resources/waybar.service.in b/resources/waybar.service.in
+index 18bac54c..9a54e5ba 100644
+--- a/resources/waybar.service.in
++++ b/resources/waybar.service.in
+@@ -6,6 +6,9 @@ After=graphical-session.target
+ Requisite=graphical-session.target
+ 
+ [Service]
++ExecCondition=sh -c '[ -n "$WAYLAND_DISPLAY" ]'
++# Known incompatible Wayland sessions
++ExecCondition=/usr/lib/systemd/systemd-xdg-autostart-condition "" "GNOME:KDE:COSMIC:X-Cinnamon"
+ ExecStart=@prefix@/bin/waybar
+ ExecReload=kill -SIGUSR2 $MAINPID
+ Restart=on-failure
+-- 
+2.55.0
+

diff --git a/waybar.spec b/waybar.spec
index e76a21e..76792f3 100644
--- a/waybar.spec
+++ b/waybar.spec
@@ -1,6 +1,6 @@
 Name:           waybar
 Version:        0.15.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Highly customizable Wayland bar for Sway and Wlroots based compositors
 # Source files/overall project licensed as MIT, but
 # - BSL-1.0
@@ -21,6 +21,9 @@ Source:         %{url}/archive/%{version}/%{name}-%{version}.tar.gz
 #  - Remove several modules from the config
 #  - Switch font to monospace
 Patch:          waybar-fedora-config-changes.patch
+# Downstream changes to the systemd service:
+#  - Check that the environment is Wayland and is not listed as unsupported
+Patch:          waybar-fedora-systemd-target-conflicts.patch
 
 # Fix for hot update loop that can spike CPU and
 # destabilize rendering in drawer/group setups
@@ -102,6 +105,9 @@ Recommends:     font(fontawesome6brands)
 %{_userunitdir}/%{name}.service
 
 %changelog
+* Sun Aug 02 2026 Aleksei Bavshin <alebastr@fedoraproject.org> - 0.15.0-2
+- systemd: declare known incompatible desktop environments
+
 * Sat Feb 07 2026 Tomasz Hołubowicz <mail@alternateved.com> - 0.15.0-1
 - Update to 0.15.0
 

                 reply	other threads:[~2026-08-03  4:27 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=178573122537.1.2904744705432823029.rpms-waybar-317660bab4d1@fedoraproject.org \
    --to=alebastr@fedoraproject.org \
    --cc=git-commits@fedoraproject.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