Balló György pushed to branch main at Arch Linux / Packaging / Packages / eog
Commits:
4d83a6ca by Balló György at 2025-07-27T00:03:12+02:00
upgpkg: 47.0-3: Set prgname to application ID
- - - - -
3 changed files:
- .SRCINFO
- PKGBUILD
- + eog-prgname.patch
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = eog
pkgdesc = Eye of Gnome: An image viewing and cataloging program
pkgver = 47.0
- pkgrel = 2
+ pkgrel = 3
url = https://wiki.gnome.org/Apps/EyeOfGnome
arch = x86_64
license = GPL-2.0-or-later
@@ -33,7 +33,9 @@ pkgbase = eog
depends = webp-pixbuf-loader
depends = zlib
source = git+https://gitlab.gnome.org/GNOME/eog.git#tag=47.0
+ source = eog-prgname.patch
b2sums =
b6c195c0590054abc21bd004b4f97b23d30cc689534e4e6feeb37c2123dd15eae9ab180898bdf37c2843ac427d119e827bf190e467d1462e969d3c8c3f07a69e
+ b2sums =
789ff87c7c6975b3e5ed8ebb5af8d141d562810d2143ee5edf2851d563763b43abd26c7cf67ae4463f9205a353d94401ab262844cfeced50a96ac64eabd49cf7
pkgname = eog
optdepends = eog-plugins: Additional features
=====================================
PKGBUILD
=====================================
@@ -8,7 +8,7 @@ pkgname=(
eog-docs
)
pkgver=47.0
-pkgrel=2
+pkgrel=3
pkgdesc="Eye of Gnome: An image viewing and cataloging program"
url="https://wiki.gnome.org/Apps/EyeOfGnome"
arch=(x86_64)
@@ -44,8 +44,18 @@ makedepends=(
systemd
yelp-tools
)
-source=("git+https://gitlab.gnome.org/GNOME/eog.git#tag=${pkgver/[a-z]/.&}")
-b2sums=('b6c195c0590054abc21bd004b4f97b23d30cc689534e4e6feeb37c2123dd15eae9ab180898bdf37c2843ac427d119e827bf190e467d1462e969d3c8c3f07a69e')
+source=("git+https://gitlab.gnome.org/GNOME/eog.git#tag=${pkgver/[a-z]/.&}"
+ eog-prgname.patch)
+b2sums=('b6c195c0590054abc21bd004b4f97b23d30cc689534e4e6feeb37c2123dd15eae9ab180898bdf37c2843ac427d119e827bf190e467d1462e969d3c8c3f07a69e'
+
'789ff87c7c6975b3e5ed8ebb5af8d141d562810d2143ee5edf2851d563763b43abd26c7cf67ae4463f9205a353d94401ab262844cfeced50a96ac64eabd49cf7')
+
+prepare() {
+ cd $pkgname
+
+ # Set prgname to application ID
+ # https://gitlab.gnome.org/GNOME/eog/-/merge_requests/167
+ git apply -3 ../eog-prgname.patch
+}
build() {
local meson_options=(
=====================================
eog-prgname.patch
=====================================
@@ -0,0 +1,40 @@
+From 5456b9f896975750d3c7b8854d4c031b7b7409b2 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <[email protected]>
+Date: Sat, 31 Aug 2024 04:21:44 +0200
+Subject: [PATCH] Set prgname to application ID
+
+Using the application ID ensures that Wayland compositors could match the
+window with the application and show the appropriate icon for them.
+---
+ src/eog-application.c | 1 +
+ src/eog-window.c | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/eog-application.c b/src/eog-application.c
+index 4cd699cd..2afe1088 100644
+--- a/src/eog-application.c
++++ b/src/eog-application.c
+@@ -334,6 +334,7 @@ eog_application_startup (GApplication *application)
+ gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
+ EOG_DATA_DIR G_DIR_SEPARATOR_S
"icons");
+
++ g_set_prgname (APPLICATION_ID);
+ gtk_window_set_default_icon_name (APPLICATION_ID);
+ g_set_application_name (_("Eye of GNOME"));
+
+diff --git a/src/eog-window.c b/src/eog-window.c
+index 154cd52e..c8697270 100644
+--- a/src/eog-window.c
++++ b/src/eog-window.c
+@@ -854,7 +854,7 @@ add_file_to_recent_files (GFile *file)
+ recent_data->description = NULL;
+ recent_data->mime_type = (gchar *)
eog_util_get_content_type_with_fallback (file_info);
+ recent_data->app_name = EOG_RECENT_FILES_APP_NAME;
+- recent_data->app_exec = g_strjoin(" ", g_get_prgname (), "%u", NULL);
++ recent_data->app_exec = g_strdup ("eog %u");
+ recent_data->groups = groups;
+ recent_data->is_private = FALSE;
+
+--
+GitLab
+
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/eog/-/commit/4d83a6ca806adcf6305190951fc891373db3f59d
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/eog/-/commit/4d83a6ca806adcf6305190951fc891373db3f59d
You're receiving this email because of your account on gitlab.archlinux.org.