Fix hicolor theme application icon names

Fixed-size icons were not available as org.freecad.FreeCAD and
XDGData/org.freecad.FreeCAD.svg was a duplicate of Gui/Icons/freecad.svg.
This commit is contained in:
Chris Mayo
2023-08-08 19:25:14 +01:00
parent 708eb477de
commit bbb87fcf0d
4 changed files with 8 additions and 269 deletions

View File

@@ -7,9 +7,9 @@ Installation:
and must have execution rights
"$ sudo chmod +x /usr/bin/freecad-thumbnailer"
- If a FreeCAD project file doesn't include a thumbnail the file freecad.png is used.
- If a FreeCAD project file doesn't include a thumbnail the file org.freecad.FreeCAD.png is used.
Thus, the file src/Gui/Icons/freecad-icon-48.png must be installed.
"$ sudo cp freecad-icon-48.png /usr/share/icons/hicolor/48x48/apps/freecad.png"
"$ sudo cp freecad-icon-48.png /usr/share/icons/hicolor/48x48/apps/org.freecad.FreeCAD.png"
- The application/x-extension-fcstd MIME type should be registered
Check that a corresponding /usr/share/mime/packages/freecad.xml file exists
@@ -54,7 +54,7 @@ try:
image = zfile.read(image)
else:
# apps should have at least 48x48 icons
freecad = open("/usr/share/icons/hicolor/48x48/apps/freecad.png", "rb")
freecad = open("/usr/share/icons/hicolor/48x48/apps/org.freecad.FreeCAD.png", "rb")
image = freecad.read()
# Write icon to output_file