Gentoo Archives: gentoo-dev

From: Pacho Ramos <pacho@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] desktop.eclass: allow 1024 as a size for icons
Date: Sat, 28 Jan 2023 13:00:02
Message-Id: e4b4934eaf20baf00245f1c95b39cac50bd44247.camel@gentoo.org
1 Hello,
2
3 As discussed in https://bugs.gentoo.org/888635 , 1024x1024 icons are
4 starting to be deployed in some apps as they start to be used in MacOSX
5 environment. Some weeks ago I needed to skip their installation for
6 net-im/rocketchat-desktop-bin and I saw that net-analyzer/wireshark is
7 workarounding the problem by manually installing them without
8 desktop.eclass helpers.
9
10 I would then simply add 1024 to the list of allowed sizes too
11
12 Thanks
13
14 diff --git a/desktop.eclass~ b/desktop.eclass
15 index aa1b9ac..ea5c84c 100644
16 --- a/desktop.eclass~
17 +++ b/desktop.eclass
18 @@ -311,7 +311,7 @@ _iconins() {
19 size=${2}
20 fi
21 case ${size} in
22 - 16|22|24|32|36|48|64|72|96|128|192|256|512)
23 +
24 16|22|24|32|36|48|64|72|96|128|192|256|512|1024)
25 size=${size}x${size};;
26 symbolic|scalable)
27 ;;
28 @@ -369,7 +369,7 @@ _iconins() {
29 # !!! must specify to install into /usr/share/icons/... !!!
30 # size of the icon, like 48 or 48x48
31 # supported icon sizes are:
32 -# 16 22 24 32 36 48 64 72 96 128 192 256 512 scalable
33 +# 16 22 24 32 36 48 64 72 96 128 192 256 512 1024 scalable
34 # -c, --context
35 # defaults to "apps"
36 # -t, --theme

Attachments

File name MIME type
signature.asc application/pgp-signature