Welcome, Guest. Please login or register.

Author Topic: Adding deficons - can't get new icons to show  (Read 1783 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline BouncingAyatollah

  • Sr. Member
  • ****
  • Join Date: Feb 2002
  • Posts: 341
    • Show all replies
Re: Adding deficons - can't get new icons to show
« on: January 13, 2003, 01:20:19 AM »
Try this, add the New type name (e.g. xml) AND the recognition rules in DefIcons e.g. PATTERN #?.xls

Create an icon in SYS:Prefs/Env-Archive/Sys (or ENVARC:Sys - same thing) called "def_xls", or at the file level def_xls.info

This will be copied to ENV:Sys on boot which is where all the def_icons are.
\\"Whose souls, albeit in a cloudy memory, yet seek back their good,
but, like drunk men, know not the road home.\\" -- BOETHIUS
 

Offline BouncingAyatollah

  • Sr. Member
  • ****
  • Join Date: Feb 2002
  • Posts: 341
    • Show all replies
Re: Adding deficons - can't get new icons to show
« Reply #1 on: January 14, 2003, 04:11:40 AM »
Mmmm... I just got it working in WinUAE (latest version), although yesterday I did use my A1200.

I did this, in DefIcons add New type "xls" under "project", i.e. not in another MetaClass, look for PATTERN #?.xls
Save.

Opened SYS:Prefs/Env-Archive/Sys and from Wb menu "Copy"ed an existing icon (def_key). Did Icon Information and from there IconEdit, added crude X (!) to icon, saved. Renamed to "def_xls" (lowercase).

Now dragged an XLS file from Winbloat to my WinUAE HD "work" drawer. When I opened the work: partition in WinUAE and did Show All Files, it displayed the blank page default icon. Did F12->Misc->Reboot Amiga. Looked again, now picked up proper icon.

Have a look at small grab of area.

I do know that DefIcons is quite "clever" in how it matches. Yesterday I tested by making a quick test text file something.xls and DefIcons matched it first with ISASCII so it didn't get the xls icon but the "text file" one! So I tested then with a proper xls file.
\\"Whose souls, albeit in a cloudy memory, yet seek back their good,
but, like drunk men, know not the road home.\\" -- BOETHIUS