Hi everyone,
So I saw that cycas doesn´t come with mime type configured neither it comes with icons. So I create icons for the files .cyc and for the backup files .cyc.bak and here I´ll provide you a howto create mime types for linux desktop, so that .cyc and .cyc.bak get icons and also with a double click it gets opened on CYCAS39.
All the following should be done as root, so either login as root or do it using sudo
1) First we need to add mime types for .cyc and .cyc.bak:
.... Create file /usr/share/mime/packages/cycas.xml with the following content, use sudo nano , sudo vim , sudo gedit , sudo kwrite or whatever it is your $EDITOR
http://www.freedesktop.org/standards/shared-mime-info">
CycasCAD Design
CycasCAD Backup Design
.... Now run
$ sudo update-mime-database /usr/share/mime
.... Second we need to modify the .desktop of the Original CYCAS to incorporate the MIME-Types. The modified content of the file /usr/share/applications/CYCAS39.desktop should be
[Desktop Entry]
Value=1.0
Name=CYCAS39
Comment=CAD package
Categories=Application;Graphics;VectorGraphics;
Encoding=UTF-8
Type=Application
Version=3.9
TryExec=cycas39
Exec=cycas39 %F
MimeType=application/cycas;application/cycas-backup
Icon=cycas39.xpm
StartupNotify=true
Terminal=false
.... Third and last thing we should add icons to the mime type. For this you need to download the iconset I created from
http://files.myopera.com/diogourb/Others...iconset.tar.bz2 . After downloading, extract it and on the files directory do the following commands to install the backup mimetype icons:
$ sudo xdg-icon-resource install --context mimetypes --size 254 --mode system 254x254-application-x-cyc-bak.png application-cycas-backup
$ sudo xdg-icon-resource install --context mimetypes --size 128 --mode system 128x128-application-x-cyc-bak.png application-cycas-backup
$ sudo xdg-icon-resource install --context mimetypes --size 64 --mode system 64x64-application-x-cyc-bak.png application-cycas-backup
$ sudo xdg-icon-resource install --context mimetypes --size 48 --mode system 48x48-application-x-cyc-bak.png application-cycas-backup
$ sudo xdg-icon-resource install --context mimetypes --size 32 --mode system 32x32-application-x-cyc-bak.png application-cycas-backup
PS: I´ll post the continuation since I don´t have more space left to keep writing .. CONTINUE READING