Remove Association op cleans blenderbim & bonsai

The remove *.ifc Association removes any stale Linux BlenderBIM
associations as well as Bonsai associations, this should now give a
clean upgrade path. Closes #5212
This commit is contained in:
Bruno Postle
2024-08-21 21:11:11 +01:00
parent 94f5137684
commit 473d0ae888
+4
View File
@@ -388,6 +388,10 @@ class FileUnassociate(bpy.types.Operator):
"share/applications/bonsai.desktop",
"share/mime/packages/bonsai.xml",
"bin/bonsai",
"share/icons/hicolor/128x128/apps/blenderbim.png",
"share/applications/blenderbim.desktop",
"share/mime/packages/blenderbim.xml",
"bin/blenderbim",
):
try:
os.remove(os.path.join(destdir, rel_path))