I decided to write tutorial for Ubuntu 11.10 so everything in this topic would be in one place. Future FreeCAD and Ubuntu versions could change and this tutorial could not work or be relevant anymore it was tested only on Ubuntu 11.10 and current FreeCAD versions from PPA.
After installing FreeCAD from PPA create one .fcstd file. You will notice .fcstd file does not have any special icon associated with it and if you click on .fcstd file it will launch archive manager. To fix this do the following two things:
1.)
FreeCAD Icon.
Download icon file created by normandc.
viewtopic.php?f=3&t=994#p7645
Right click on any .fcstd file -> Properties -> tab Basic -> Here you will see square box on top left corner. Click on it and choose the file you have downloaded.
2.)
Open .fcstd file in FreeCAD and not in archive manager.
Right click on any .fcstd file -> Properties -> tab Open With -> Select FreeCAD.
If u want
thumbnails to be created, here is what you have to do:
1.)
Open the terminal and copy/paste command into it:
gksudo gedit /usr/share/thumbnailers/freecad.thumbnailer
Put the following in the file and save the file:
Code: Select all
[Thumbnailer Entry]
TryExec=freecad-thumbnailer
Exec=freecad-thumbnailer -s %s %u %o
MimeType=application/x-extension-fcstd;
2.)
Open FreeCAD and enable thumbnail functionality:
Edit -> Preferences ... -> Document -> Save thumbnail into project file when saving document
Now create one
NEW .fcstd file and rename it from name
.fcstd to name
.zip and open it with archive manager. In folder thumbnails check if thumbnail was created or not. If Thumbnail was created go to
STEP 4. If it was not created probably your graphic driver does not have support for pbuffers and include
STEP 3.
3.)
Close any opened instance of FreeCAD! Open the terminal and copy/paste command into it:
gksudo gedit /usr/share/applications/freecad.desktop
Find line:
And change it to:
Code: Select all
Exec=env COIN_GLXGLUE_NO_PBUFFERS=1 env COIN_GLXGLUE_NO_GLX13_PBUFFERS=1 /usr/bin/freecad %F
Save the changes and go to STEP 4.
4.)
Open the terminal and copy/paste command into it:
cd
nautilus .thumbnails/fail/gnome-thumbnail-factory/
Delete the content of this folder.
Now you should have:
-FreeCAD will open .fcstd file by default.
-Icon for .fcstd files.
-Thumbnails should work fine.