Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 2bab59f760fbb510b0a8f0ba1c26671c8839304e Mon Sep 17 00:00:00 2001 |From: aleks |Date: Tue, 31 May 2022 00:16:17 +0200 |Subject: [PATCH] Enable to set _NET_WM_ICON with a png-image | |Generally the icon of an application is defined by its desktop-entry. |The patch desktopentry serves this purpose. Unfortunately, some programs |like tint2 (https://gitlab.com/o9000/tint2) or alttab |(https://github.com/sagb/alttab) can't make use of the desktop-entry and |rely instead on a hardcoded icon which has to be defined by the |application itself with the window-propery _NET_WM_ICON. Since st |doesn't define _NET_WM_ICON this programs can't display the correct icon |for st even if a desktop-entry exists. This patch solves this problem. | |The dependencies are gd and glib. | |By default each time st starts it will search for a file with the name st.png |under /usr/local/share/pixmaps/. If you put an image with this name in the |root-directory of the st-repository and call make install the image will be |installed in /usr/local/share/pixmaps/ automatically. Otherwise you have to |put the file there manually. | |If you use the desktopentry-patch you should adjust the icon |in the file st.desktop by replacing the line *Icon=utilities-terminal* with |*Icon=st*. | |Most programs which use the desktop-file to determine the icon should be able to |find st.png under /usr/local/share/pixmaps/. If not report it to me and try |changing in confing.mk the line *ICONPREFIX = $(PREFIX)/share/pixmaps* to |*ICONPREFIX = $(PREFIX)/share/icons/hicolor/256x256/apps/* and install the icon |there. | |The code for loading and transforming the image to an appropriate format |is, except for minor modifications, from xseticon |(https://www.leonerd.org.uk/code/xseticon/) which is developed by Paul |Evans. | |--- | Makefile | 3 +++ | config.mk | 8 ++++++-- | st.h | 5 +++-- | x.c | 38 +++++++++++++++++++++++++++++++++++++- | 4 files changed, 49 insertions(+), 5 deletions(-) | |diff --git a/Makefile b/Makefile |index 470ac86..96e27e3 100644 |--- a/Makefile |+++ b/Makefile -------------------------- Patching file Makefile using Plan A... Hunk #1 succeeded at 49. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/config.mk b/config.mk |index 4c4c5d5..7af8ab7 100644 |--- a/config.mk |+++ b/config.mk -------------------------- Patching file config.mk using Plan A... Hunk #1 succeeded at 6. Hunk #2 succeeded at 16. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/st.h b/st.h |index 519b9bd..0f6e7d4 100644 |--- a/st.h |+++ b/st.h -------------------------- Patching file st.h using Plan A... Hunk #1 succeeded at 3. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/x.c b/x.c |index 8a16faa..84a1e31 100644 |--- a/x.c |+++ b/x.c -------------------------- Patching file x.c using Plan A... Hunk #1 succeeded at 77. Hunk #2 succeeded at 95. Hunk #3 succeeded at 1206. Hmm... Ignoring the trailing garbage. done