https://bugs.kde.org/show_bug.cgi?id=426168

            Bug ID: 426168
           Summary: ECMInstallIcons doesn't generate index.html, rendering
                    installed themes unreadable by QT
           Product: extra-cmake-modules
           Version: 5.68.0
          Platform: Ubuntu Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: ecm-bugs-n...@kde.org
          Reporter: m...@dawidwrobel.com
  Target Milestone: ---

SUMMARY

ECMInstallIcons documentation doesn't mention anything about the index.html,
giving an impression that preparing icons according to the pattern
(<size>-<group>-<name>.<ext>) is the only thing required for the icons to be
"installed to the appropriate subdirectory of DESTINATION according to the
FreeDesktop.org icon naming scheme."

However, icons installed this way will not work, since QIconTheme will mark
such theme as invalid (!isValid()), unless the files are being copied to an
location that already contains a valid theme.

One could obviously prepare an index.html by hand, but since ECMInstallIcons
builds out final theme folder structure automatically, predicting it ahead of
time is futile and negates the whole purpose of the automation.


STEPS TO REPRODUCE
1. Add a folder with icons matching the <size>-<group>-<name>.<ext> pattern
2. add a CMakeList and configure a "fallback_theme" according to
ECMInstallIcons requirements
3. observe the files copied to a requested location, but without index.theme
file
4. use setFallbackTheme("fallback_theme") upon initialization.


OBSERVED RESULT
Icons are not getting loaded despite fallbackThemeName() returning correct
theme name and theme icons physically present at the location. 


EXPECTED RESULT
a) ECMInstallIcons to generate a bare minimum index.theme file
b) ECMInstallIcons documentation to mention that index.theme is required by QT,
effectively requiring that the file is prepared by hand or that the functioning
theme must already be present at the DESTINATION and that the ECMInstallIcons
is meant for installing additional icons only.

Qt Version: 5.12.8

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to