• [gentoo-dev] desktop.eclass: allow 1024 as a size for icons

    From Pacho Ramos@21:1/5 to All on Sat Jan 28 14:10:02 2023
    Hello,

    As discussed in https://bugs.gentoo.org/888635 , 1024x1024 icons are
    starting to be deployed in some apps as they start to be used in MacOSX environment. Some weeks ago I needed to skip their installation for net-im/rocketchat-desktop-bin and I saw that net-analyzer/wireshark is workarounding the problem by manually installing them without
    desktop.eclass helpers.

    I would then simply add 1024 to the list of allowed sizes too

    Thanks

    diff --git a/desktop.eclass~ b/desktop.eclass
    index aa1b9ac..ea5c84c 100644
    --- a/desktop.eclass~
    +++ b/desktop.eclass
    @@ -311,7 +311,7 @@ _iconins() {
    size=${2}
    fi
    case ${size} in
    - 16|22|24|32|36|48|64|72|96|128|192|256|512)
    +
    16|22|24|32|36|48|64|72|96|128|192|256|512|1024)
    size=${size}x${size};;
    symbolic|scalable)
    ;;
    @@ -369,7 +369,7 @@ _iconins() {
    # !!! must specify to install into /usr/share/icons/... !!!
    # size of the icon, like 48 or 48x48
    # supported icon sizes are:
    -# 16 22 24 32 36 48 64 72 96 128 192 256 512 scalable
    +# 16 22 24 32 36 48 64 72 96 128 192 256 512 1024 scalable
    # -c, --context
    # defaults to "apps"
    # -t, --theme


    -----BEGIN PGP SIGNATURE-----

    iQEzBAABCAAdFiEE808Ng0g83FMNupoifLEMIH/AfbwFAmPVHDUACgkQfLEMIH/A fbzCegf8CbVdxuHYs5ekUXZj7vwZvvQEfeB65kP7RXSOYdlQop1pFnoDm23N25Uq RfvIvya9mGp/zgOpmU1w/Num0