[packages/waybar] upstream fix for crash when rendering "nm-no-connection-secure" icon; rel 2
atler
atler at pld-linux.org
Fri Jul 11 13:51:58 CEST 2025
commit 729bd035687d1a4b8ec65f27601a4507b685ee00
Author: Jan Palus <atler at pld-linux.org>
Date: Fri Jul 11 13:51:12 2025 +0200
upstream fix for crash when rendering "nm-no-connection-secure" icon; rel 2
from: https://github.com/Alexays/Waybar/pull/4234
tray-icon-crash.patch | 25 +++++++++++++++++++++++++
waybar.spec | 4 +++-
2 files changed, 28 insertions(+), 1 deletion(-)
---
diff --git a/waybar.spec b/waybar.spec
index de55e20..0178dd4 100644
--- a/waybar.spec
+++ b/waybar.spec
@@ -2,11 +2,12 @@ Summary: Highly customizable Wayland bar for Sway and Wlroots based compositors
Summary(pl.UTF-8): Bardzo konfigurowalny pasek Waylanda do kompozytorów opartych na Sway i Wlroots
Name: waybar
Version: 0.13.0
-Release: 1
+Release: 2
License: MIT
Group: Applications
Source0: https://github.com/Alexays/Waybar/archive/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 4f4f555e29b973b1eb97bf2f2785900c
+Patch0: tray-icon-crash.patch
URL: https://github.com/Alexays/Waybar/
BuildRequires: cmake
BuildRequires: glib2-devel
@@ -58,6 +59,7 @@ i Wlroots.
%prep
%setup -q -n Waybar-%{version}
+%patch -P0 -p1
%build
%meson
diff --git a/tray-icon-crash.patch b/tray-icon-crash.patch
new file mode 100644
index 0000000..6a31eac
--- /dev/null
+++ b/tray-icon-crash.patch
@@ -0,0 +1,25 @@
+From 460b19ba1b83b873795e2e65ce60efadc7a3a906 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Martynas=20Maciulevi=C4=8Dius?=
+ <martynas.maciulevicius at pm.me>
+Date: Thu, 26 Jun 2025 20:34:18 +0300
+Subject: [PATCH] Fix default icon in tray module
+
+---
+ src/util/gtk_icon.cpp | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/util/gtk_icon.cpp b/src/util/gtk_icon.cpp
+index 4b4d3d69d..73f77284e 100644
+--- a/src/util/gtk_icon.cpp
++++ b/src/util/gtk_icon.cpp
+@@ -25,6 +25,10 @@ Glib::RefPtr<Gdk::Pixbuf> DefaultGtkIconThemeWrapper::load_icon(
+
+ auto icon_info = default_theme->lookup_icon(name, tmp_size, flags);
+
++ if (icon_info == nullptr) {
++ return default_theme->load_icon(name, tmp_size, flags);
++ }
++
+ if (style.get() == nullptr) {
+ return icon_info.load_icon();
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/waybar.git/commitdiff/729bd035687d1a4b8ec65f27601a4507b685ee00
More information about the pld-cvs-commit
mailing list