• Should I place an icon in /usr/share/pixmaps?

    From Soren Stoutner@21:1/5 to Debian Mentors on Mon Nov 4 11:34:58 2024
    I maintain the electrum package, which I inherited from another developer. The package installs the program icon into both:

    /usr/share/icons/hicolor/128x128/apps/
    /usr/share/pixmaps/

    On my system, very few icons exist in /usr/share/pixmaps/. From what I have read, that location is deprecated.

    My question is, does anything still use /usr/share/pixmaps/ instead of looking in /usr/share/icons/hicolor/128x128/apps/? If not, I would like to remove the /usr/share/pixmaps, but I don’t want to do so if it will break anything.

    --
    Soren Stoutner
    soren@debian.org
    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEJKVN2yNUZnlcqOI+wufLJ66wtgMFAmcpE9IACgkQwufLJ66w tgOSbA//dVnodAV0KVwCKv0XxY6RAJs7EuI06ItougdVbOgTxkEzmSe7DWR+l8o4 G4K7lcplK6AcFe0KQ5pLeQ4vqwInFcA6Cth6oCK3cpmth7Dc5yNZtra1+mWC2FrB +/oyN2AFJteehilBh5bt2tgKEz1mR5HXfPKaMuRP5WGuJmdr+7pMsAcpnvsZjXAC 5h1iAmcPkrlzEyuuZeiaK8zUPFyjpc2sfsH0TnREVflyc7QIA4JqyqPPcH2SrPik /wPhUrOUQiCjbRpSGY7Y14Ucig39N8CeAnh1OJ0z6mWUi0nth09P3V3+cZGXv27j fCeM/s182aO7CJBNcgObV1u8JVgPVgQVAg9vcZ01VB8Es432bFAaJr0+Ka8dqftn zmuhrUpWdT2RvyIcJiBG5VUNaQ5TXgeGhdZJsGCusuEqfbv6FVd4vkq9Zc2MO21X LcZIjwX9teO7eCBJqTCFKKijkW50t8J/UfysiFqWjGnSmQjGNtWym0Sr81f1NJHJ E+Hnd1itD6B3391UYVq/5vWoLTbyidLpu8h/MyhHzGt7q4Yc1p8OZKQcnlECkNLb OIOAB/54kbI8iINt+sv7H4QqrjvmdThgDy62D9x48oaX3iB8KqNCSkoe1zqmUdDI sjpnC4aBZk0kgTdojcBcxF7A0voQFS0PpL444HRRHdVMKH1tbrk=
    =Rsr4
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sven Hoexter@21:1/5 to Soren Stoutner on Tue Nov 5 14:50:01 2024
    On Mon, Nov 04, 2024 at 11:34:58AM -0700, Soren Stoutner wrote:

    Hi,

    My question is, does anything still use /usr/share/pixmaps/ instead of looking
    in /usr/share/icons/hicolor/128x128/apps/? If not, I would like to remove the
    /usr/share/pixmaps, but I don’t want to do so if it will break anything.

    https://specifications.freedesktop.org/icon-theme-spec/latest/#directory_layout

    It's still mentioned in the theme spec, but I also believe technically
    the desktop enviroments following the xdg specs look for the hicolor
    fallback theme, and thus find icons there.

    Now you might encounter issues if you only ship a single resolution
    file and the user setup does not use that exact resolution. I'm also
    not sure what the default is for contempory desktop environments.

    If someone has more information on that topic I'd be also interested
    to here it. For vym I currently ship only a 48x48 png icon in the
    hicolor theme.

    Sven

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Soren Stoutner@21:1/5 to All on Wed Nov 6 14:25:23 2024
    On Tuesday, November 5, 2024 6:35:40 AM MST Sven Hoexter wrote:
    Now you might encounter issues if you only ship a single resolution
    file and the user setup does not use that exact resolution. I'm also
    not sure what the default is for contempory desktop environments.

    Thanks for the information. Indeed, Electrum only ships one icon size (128x128). This same icon ends up in both places, but I can see scenarios where something can’t find it in

    /usr/share/icons/hicolor/128x128/apps/electrum.png

    but can't find it in

    /usr/share/pixmaps/electrum.png

    To be safe, I think I will leave both copies.

    --
    Soren Stoutner
    soren@debian.org
    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEJKVN2yNUZnlcqOI+wufLJ66wtgMFAmcr3sMACgkQwufLJ66w tgNs9g//UAhXrnfWF/iROFu7vLLnAQRfrbP8blde1lqCe9I4FttPu3VfjNo/lB9T QF/H4SbwMqbaFyXlTQYEDvIfAzzUpgEqsCzZQy2P49CPR4na88WW0F4BgwtjWSIg vYlF2cedQVVZrM9PCOjKW98KE3reUbW7FT7jFIOAVsZQ8uCKSNCSgmtBezaLVfEM Hn6ukRebBw8FeLwORcRKaMwPS9f/ENOvy2Jm/9oinsOsHG4mNe6q+XhGxcWUbkHq K4/CRPLj05SMnjuZp36KV35MfH4Q9rD83hEa1bDBqFzsFfNprbpI/bUKcPVifQxD xNivTu5pSLdEVTB040Pww/CTf8dcZpx4Gj9RzoPFwNJfKm6CgfAXy24hZnH758Lb tYvx6lFQvByFeN5klnCRNXLTFMuGNf/yX6zYtefafTCSNTRQdzeZ5n7Ex2M77hDj V7G4nJg5LZharcUWiDyV+HNlhPLnOJGbnnXKMs3JjHEsO6PW8G6PORYfGqs728iV sgkw3R1kksV9OhhPx/hbqNLkZ2nIu+OAxlFCPPqv3o8BLyYM8Z2YUlRkLGPzGwLp dj508WAM93OFjWImXib0xhAe8x00PtBF8EGJzmTPH/JCWyrDl5qIMK/ycpO9IUeM BK1246iRC0vA7t3KlcK/c5dVryBW5o+FctzzQjJMfwsN9jFw7dQ=
    =Kn57
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)