Integrating Appimages

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Integrating Appimages

Post by bambuko »

CrashedAgain wrote: Tue Nov 23, 2021 11:35 pm It must be that the system is unable to find the freecad icon...
Thank you!!
cat /usr/share/mime/packages/freecad.xml returns:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
	<mime-type type="application/x-extension-fcstd">
		<sub-class-of type="application/zip"/>
		<comment>FreeCAD document files</comment>
		<glob pattern="*.fcstd"/>
		<icon name ="freecad"/>
	</mime-type>
</mime-info>
ls /usr/share/icons/hicolor/scalable/apps/fre* returns:

Code: Select all

ls: cannot access '/usr/share/icons/hicolor/scalable/apps/fre*': No such file or directory
so, I looked into the directory manually and there it is:
scalable_freecad_link.svg

whereas yours was:
scalable_freecad.svg
so I copied yours into this directory.
Tried again... no difference, same message:

Code: Select all

ls: cannot access '/usr/share/icons/hicolor/scalable/apps/fre*': No such file or directory
so I tried (subtle difference):
ls /usr/share/icons/hicolor/scalable/apps/*free* and the return was:

Code: Select all

/usr/share/icons/hicolor/scalable/apps/org.freedesktop.fwupd.svg  
/usr/share/icons/hicolor/scalable/apps/scalable_freecad.svg
/usr/share/icons/hicolor/scalable/apps/scalable_freecad_link.svg
So, I think, in the end all is as it should be?


LATER EDIT:
Just to explain (better) what I am talking about,
please note the difference between icons(or thumbs?) for all the other apps appearing in files and the way that FreeCAD files appear
.

freecad_icons.png
freecad_icons.png (11.42 KiB) Viewed 1072 times

file_icons.png
file_icons.png (36.16 KiB) Viewed 1072 times
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
adrianinsaval
Veteran
Posts: 5551
Joined: Thu Apr 05, 2018 5:15 pm

Re: Integrating Appimages

Post by adrianinsaval »

rename to freecad.svg per his instructions:
CrashedAgain wrote: Sun Nov 07, 2021 8:22 pm Now we want to associate the freecad icon with the file, so copy the icon:

Code: Select all

 sudo cp scalablefreecad.svg /usr/share/icons/hicolor/scalable/apps/freecad.svg 
and update the icon database:

Code: Select all

 sudo update-icon-caches /usr/share/icons/* 
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Integrating Appimages

Post by bambuko »

adrianinsaval wrote: Wed Nov 24, 2021 1:15 pm rename to freecad.svg per his instructions...
You are my hero :mrgreen:
It has worked perfectly :ugeek:

I knew it was something dumb I have done :oops:

The only (exceedingly minor) issue left is that in multitasking view, my Linux PC still doesn't know it is FreeCAD:
Firefox icon is fine, but FreeCAD is dumb :oops:
multitask.jpg
multitask.jpg (685.42 KiB) Viewed 1039 times
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
Post Reply