How to get FreeCAD logo associated with the .FCStd file extension when it's automagically installed?

We’re having a downstream regression issue with FreeCAD files losing their icon association in Nautilus. See GNOME Nautilus does not recognize the .FCStd extension anymore · Issue #265 · FreeCAD/FreeCAD-Bundle · GitHub

Can someone kindly come participate in the downstream discussion on how to restore this feature for FreeCAD users of the GNOME community ?

1 Like

Just to be clear, this issue happens only for FreeCAD AppImage. Correct?

@Sid yes, I believe that is so. I haven’t confirmed with the flatpak or snap.

Yes indeed, just for AppIamge

The softest of bumps,

File type associations are not maintained by GNOME: GNOME consumes the data in the shared-mime-info database.

It’s entirely possible that FreeCAD is shipping its own extensions to that database, which is allowed; but AppImage is a self-contained distribution format that does not interact with the system in any way (which is why it does not provide desktop files either, and requires manual installation of files by the user), so it’s unlikely that it’ll work for MIME type extensions, or icons.

My strong recommendation is to stop shipping AppImages, unless you’re also willing to document how to integrate them into a freedesktop system, something that the AppImage development community is wholly uninterested in doing, seeing as they are trying to replicate the macOS app deployment mechanism.

What is result of the following command: gio info -a "*" myfile.FCStd | grep icon?

➜ gio info -a "*" myfile.FCStd | grep icon

  standard::icon: application-x-extension-fcstd, application-x-extension-fcstd-symbolic
  standard::symbolic-icon: application-x-extension-fcstd-symbolic, application-x-extension-fcstd-symbolic, application-x-extension-fcstd