unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 3bacd2120c698ffe4be9f8a58e9346300d473414 1372 bytes (raw)
name: gnu/packages/patches/sgt-puzzles-install-two-icon-sizes.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
From: Ben Hutchings <benh@debian.org>
Date: Sun, 22 Jan 2023 22:58:43 +0100
Subject: Install both 48x48 and 96x96 icons
Bug-Debian: https://bugs.debian.org/887982

gnome-shell prefers to use 96x96 icons, so install them as well as the
48x48 icons.  Install them in size-specific directories instead of
using suffixes to the filename, and change the desktop files
accordingly.

---
--- a/cmake/platforms/unix.cmake
+++ b/cmake/platforms/unix.cmake
@@ -107,7 +107,9 @@ function(set_platform_puzzle_target_prop
     endif()
     configure_file(${CMAKE_SOURCE_DIR}/puzzle.desktop.in ${binary_name}.desktop)
     install(FILES ${CMAKE_CURRENT_BINARY_DIR}/icons/${NAME}-48d24.png
-      DESTINATION share/pixmaps OPTIONAL RENAME ${binary_name}-48d24.png)
+      DESTINATION share/icons/hicolor/48x48/apps OPTIONAL RENAME ${binary_name}.png)
+    install(FILES ${CMAKE_CURRENT_BINARY_DIR}/icons/${NAME}-96d24.png
+      DESTINATION share/icons/hicolor/96x96/apps OPTIONAL RENAME ${binary_name}.png)
     install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${binary_name}.desktop
       DESTINATION share/applications)
   endif()
--- a/puzzle.desktop.in
+++ b/puzzle.desktop.in
@@ -4,7 +4,7 @@ Type=Application
 Name=${displayname}
 Comment=${description}
 Exec=${binary_name}
-Icon=${binary_name}-48d24
+Icon=${binary_name}
 StartupNotify=false
 Categories=Game;LogicGame;
 Terminal=false

debug log:

solving 3bacd2120c ...
found 3bacd2120c in https://yhetil.org/guix-patches/20230316212510.6281-1-sarg@sarg.org.ru/ ||
	https://yhetil.org/guix-patches/20230317082910.25037-3-sarg@sarg.org.ru/ ||
	https://yhetil.org/guix-patches/20230317074018.3525-1-sarg@sarg.org.ru/

applying [1/1] https://yhetil.org/guix-patches/20230316212510.6281-1-sarg@sarg.org.ru/
diff --git a/gnu/packages/patches/sgt-puzzles-install-two-icon-sizes.patch b/gnu/packages/patches/sgt-puzzles-install-two-icon-sizes.patch
new file mode 100644
index 0000000000..3bacd2120c

Checking patch gnu/packages/patches/sgt-puzzles-install-two-icon-sizes.patch...
Applied patch gnu/packages/patches/sgt-puzzles-install-two-icon-sizes.patch cleanly.

skipping https://yhetil.org/guix-patches/20230317082910.25037-3-sarg@sarg.org.ru/ for 3bacd2120c
skipping https://yhetil.org/guix-patches/20230317074018.3525-1-sarg@sarg.org.ru/ for 3bacd2120c
index at:
100644 3bacd2120c698ffe4be9f8a58e9346300d473414	gnu/packages/patches/sgt-puzzles-install-two-icon-sizes.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).