19 April 2021, 11:22 | #1 |
Registered User
Join Date: Jun 2020
Location: Greece
Posts: 33
|
Question that can't find answer (Deficons & def)
Hello to everybody
Sorry for the newbie question but here is the situation I have a vanilla clean installation of WB 3.1.4.1 and i want to explicity which filetype associates with which application. For start i wanted to handle the archives file types..luckily for that i found a def_archive..put it in the ENV-Archives/Sys and Voila i had the option to change tool..did that presto it works. But what about and how the rest of filtypes. Lets take it simply , filetype .jpg or even .iff ..how on earth i will tell the system that if the file is :.jpg or .iff it will use some Image Viewer I downloaded Deficons 44 which installed seemingly fine (it wanted MUI so i installed that first) and placed Nicely in the WBStartUp Reboot double click DefIcons ....nothing is just sitting dead Went to CLI run it from there...message "DefIcons removed" So what is the deal..what i am doing wrong and i just can't make it work ? Also supposingly DefIcons managed to work can i create my own def e.g. def_images and put all the image filetypes to this single def? I have looked just about everywhere but none of the answers helped. Environment WINUAE |
19 April 2021, 12:03 | #2 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,305
|
DefIcon is a background task. I will run in the background. DefIconsPrefs should have a GUI.
Try def_jpeg.info, def_iff.info, def_lha.info, def_zip.info, ... You can add icons by yourself or just download dozens from Aminet. |
19 April 2021, 12:12 | #3 | |
Registered User
Join Date: Jun 2020
Location: Greece
Posts: 33
|
Quote:
DefIconsPrefs is in Prefs but when i double click it nothing How to add defs by myself ? Last edited by masteripper; 19 April 2021 at 12:22. |
|
19 April 2021, 12:44 | #4 | |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,378
|
Quote:
http://eab.abime.net/showthread.php?t=104660 post #4 |
|
19 April 2021, 13:20 | #5 | |
Registered User
Join Date: Jun 2020
Location: Greece
Posts: 33
|
Quote:
|
|
19 April 2021, 13:41 | #6 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,305
|
I had DefIcons running in the past but never used it on my OS 3.1 system. So never saw DefIconsPrefs. I guess that you can add/edit/... def_<name>.info icons with it and assign filetypes to them. However, def_ icons are just normal icons from type project located in ENVARC:Sys/. I think the easiest way is to download dev_ icon packs and copy them to ENVARC:Sys/. You also can copy icons or draw/edit them yourself if you like.
|
19 April 2021, 14:09 | #7 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,005
|
Maybe a little technical explanation:
DefIcons enables a call-back hook which is called by workbench.library whenever it encounters a file without an icon. The hook uses the deficons.prefs file in ENV: to decide of which type the file is. Depending on that type it chooses a def_xy.info file from ENV:Sys. The deficons.prefs file is organised hierarchically which means for example that if def_jpeg.info does not exist, it tries def_picture.info and if this does not exist, too, it uses def_project.info. Deficons.prefs is an executable file. Originally it was built from Assembler source code. The structure of the file is described in the NewIcons developer docs. Writing an editor for the deficons.prefs file is not trivial because to save new prefs you have to rebuild the executable hunk structure without an assembler/linker doing it for you. |
19 April 2021, 15:17 | #8 | |
Registered User
Join Date: Jun 2020
Location: Greece
Posts: 33
|
Quote:
Because it was just for fun probably i will abandon it and go with the flow. Just out of curiosity is there a utility that when i click such an executable will show me what is getting and what is missing...if you are familiar with Windows i am referring to Process Monitor. |
|
19 April 2021, 15:21 | #9 |
Registered User
Join Date: Jun 2020
Location: Greece
Posts: 33
|
|
19 April 2021, 16:13 | #10 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,005
|
I think I was mistaken, it's rather icon.library.
icon.library and workbench.library together are the public interface (API) of Workbench. Workbench is not really like Windows Explorer because it only acts on icons. It's not supposed to act like a file explorer, more like another kind of start menu. |
19 April 2021, 17:03 | #11 | |
Registered User
Join Date: Jun 2020
Location: Greece
Posts: 33
|
Quote:
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Def Fn help please? | volvo_0ne | Coders. AMOS | 2 | 19 November 2015 18:54 |
DefIcons editor for OS 3.1 | Leandro Jardim | request.Apps | 10 | 07 March 2014 22:11 |
Def Jam Compilation | Silmas | request.Other | 6 | 25 May 2009 23:04 |
DefIcons | Smiley | support.Apps | 2 | 11 June 2006 22:33 |
please answer this! | Traquer | Retrogaming General Discussion | 26 | 07 April 2002 15:46 |
|
|