Closed nephros closed 1 month ago
Thanks for the fixup. I really start to hate them for doing such breaking changes as altering arbitrary names regularly.
I will try to take a look at it and comprehend what you researched and implemented (I may need this for other projects, too) next weekend.
Thanks for the quick fix!
I will try to take a look at it and comprehend what you researched and implemented (I may need this for other projects, too) next weekend.
Yes, but only those ones which actually use the /usr/share/themes
location. Most packages use /usr/share/icons
which is not affected.
On my main system the only non-jolla packages that use the themes location are patchmanager, some I wrote on my own, and some originally written by coderus (like screencast).
find /usr/share/themes/sailfish-default/ -type f |xargs rpm -qf|sort -u
In case you need it, these are the steps:
.pro
file is used, change it to the four-line version:
TEMPLATE = aux
# Configures svg to png
THEMENAME=sailfish-default
CONFIG += sailfish-svg2png
svgs
subfolder, create the subdirs icons
and icons-monochrome
, and copy or link the original svg image there%files
path in the .spec to the "many asterisks" variant: %{_datadir}/themes/*/*/z*/*/*.png
This took me way longer to figure out than should be necessary.
Background: Sailfish OS 4.6 changes the default path for "theme" icons, such as the ones used for Settings plugins (which we are).
Additionally, the layout of the source dir for svgs to convert has changed or the sailfish-svg2png tool.
This drops amost all of src/icons/icons.pro, as that was a verbatim copy of the upstream sailfish-svg2png .prf file, and just uses that prf file as intended.
I haven't checked, but this may mean we lose some of the icon scales for older packages, but it should't realy make a noteworthy difference.