how to start a program for files

jacko · 3763

jacko

  • Newbie
  • *
    • Posts: 36
    • Karma: +1/-0
on: June 30, 2019, 11:52:45 AM
Hi,

how do I setup that a specific file type is open with a special program in Icaros? e.g. Libre Office calc files opens per double click the libre office calc viewer? I do not understand how it suppose to work.



salvatore

  • Guest
Reply #1 on: June 30, 2019, 02:56:24 PM
you should set dopus in the internal options, I wouldn't know how to do Paolone maybe yes :)
« Last Edit: June 30, 2019, 03:01:42 PM by salvatore »



ntromans

  • Member
  • ***
    • Posts: 157
    • Karma: +50/-0
Reply #2 on: June 30, 2019, 04:05:12 PM
Hi,

how do I setup that a specific file type is open with a special program in Icaros? e.g. Libre Office calc files opens per double click the libre office calc viewer? I do not understand how it suppose to work.

If the file has its own icon, right click on it, select icon>information and then set the program to launch it in 'Tool'. If you have to use view>all files to see it and so get a default icon for that file type, do the same action on the def_ icon in sys:prefs/anv-archive/sys. Note that you will need to copy this across to ram:env/sys or reboot to make the change take effect.

Cheers,
Nigel.



jacko

  • Newbie
  • *
    • Posts: 36
    • Karma: +1/-0
Reply #3 on: June 30, 2019, 04:43:26 PM
but which "def_" icon is it? I tried to create a "def_ODS" because there is a "def_PDF" just the end of file after dot. but no luck.



paolone

  • Moderator
  • Legendary Member
  • *****
    • Posts: 568
    • Karma: +90/-0
Reply #4 on: July 01, 2019, 03:25:37 AM
but which "def_" icon is it? I tried to create a "def_ODS" because there is a "def_PDF" just the end of file after dot. but no luck.


Unluckily, you can 'create' def files when compiling AROS only. AROS adopts MIME types to identify files and the .extension at the end of the file name isn't really necessary. Magellan, on the contrary, provides a far easier way to identify files: you can chosse either to use part of the filename (generally: its extension) or/and MIME types à-la-AmigaOS.


If you're using Magellan, you can read Magellan's manual which explain how to modify and create filetypes. Believe in me, it's quite straightforward once you start doing that correctly. Icaros Desktop manual, bay the way, explains how to assign a default host app (like LibreOffice) to a file, in hostbridge chapter.


jacko

  • Newbie
  • *
    • Posts: 36
    • Karma: +1/-0
Reply #5 on: July 01, 2019, 04:43:31 AM
thanks for the reply and the explanation.

maybe a stupid question, I found the Icaros manual on the web, which I used the whole time, but I do not find the magellan manual is it on DVD?

host-app? I thought thats only for linux hosted? I use native installation.



paolone

  • Moderator
  • Legendary Member
  • *****
    • Posts: 568
    • Karma: +90/-0
Reply #6 on: July 01, 2019, 04:14:14 PM
@Jacko
1. Magellan manual is included in sys:Storage/Icaros Manuals or sthg similar.
2. Sorry, I thought you were talking about hosted Icaros (I read LibreOffice and assumed that). That does not change so much the info you need, though.


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #7 on: July 01, 2019, 10:11:57 PM
paolone,

I will have to read the Magellan Manual sometime. I'm sure there are many features I haven't used yet.

Question about Magellan and other AROS components. How do you recompile Magellan for Icaros after making your changes? Have you done that?



paolone

  • Moderator
  • Legendary Member
  • *****
    • Posts: 568
    • Karma: +90/-0
Reply #8 on: July 02, 2019, 01:57:37 PM
Hi Miker
I never recompile Magellan. I build the distribution starting with binary files, not sources.


jacko

  • Newbie
  • *
    • Posts: 36
    • Karma: +1/-0
Reply #9 on: July 02, 2019, 04:03:21 PM
Thanks for the help and pointers

I got it some how, but its by no means straight forward. Therefore a little help, if someone wants to try it.
See picture:
you find the file type settings it in "Settings" Menu Sub menu "FileTypes" (Window left side middle "File Types") press "Add" to add a new FileType

The window under it opens press "Edit Class..."

The window lower right side opens to edit the file properties
(sometimes this window opens automatically)
Put in the name "LibreOffice calc" ID ODS (I'm not sure for what this is) and very important Pri to 5 (or something higher than the prio of Icaros, archive, which is the default)
Press the "Add" in this window to add a file property choose "Match Name" and enter "*.ods" into the field next to it, do not forget to press enter
Press "use" to apply that

now the name is already shown next to the file if you reload the directory

go back to the window on the left lower, press "Double-click" to edit the action of double click
the window in the middle lower section opens to edit actions
press Add to add an action
Choose "AmigaDOS" (where is "Command" as default) and put the program to the field next to it, and a "{f}" behind it as parameter, this is important! It is used as a placeholder for your file when starting the program, if you forget it, it will start the program but not load the file (do not forget to press enter in the field to apply it, its applied when its shown the upper list, as in the picture)
Again press "Use" to apply that

Press use in the lower left window and save in the main file types window.

Now if you double click your Calc file (upper left window the files, as you can see I added the Excel file as well, the third file I' not sure which program that belongs to, never saw before)
it shows the contents in the viewer.  (upper right window, Leu open by double click)

hurray!





paolone

  • Moderator
  • Legendary Member
  • *****
    • Posts: 568
    • Karma: +90/-0
Reply #10 on: July 03, 2019, 04:53:23 PM
@Jacko
Astonishing. Are you making a spreadsheet program?


jacko

  • Newbie
  • *
    • Posts: 36
    • Karma: +1/-0
Reply #11 on: July 03, 2019, 05:08:39 PM
??

I just downloaded that recently, but had not much time to really try.

But now with double click feature I could actually use that for my files.



emeck

  • Newbie
  • *
    • Posts: 3
    • Karma: +0/-0
Reply #12 on: July 04, 2019, 01:49:15 AM
@Jacko
Astonishing. Are you making a spreadsheet program?

That is Leu, a recent project by ALB42 written in FreePascal and available for all Amiga systems.



salvatore

  • Guest
Reply #13 on: July 04, 2019, 04:21:57 AM
is a great project alb42 is capable developpers there is also x86_64 version :)
« Last Edit: July 04, 2019, 04:26:33 AM by salvatore »



paolone

  • Moderator
  • Legendary Member
  • *****
    • Posts: 568
    • Karma: +90/-0
Reply #14 on: July 04, 2019, 07:04:15 AM
I din't even know about this! :-(


That's great!!! :-)


Downloading...