Setting Odyssey as default tool in Deficons? (Solved)

A forum for general AmigaOS 4.x support questions that are not platform-specific
Post Reply
Roland
Posts: 824
Joined: Tue May 02, 2017 7:23 am

Setting Odyssey as default tool in Deficons? (Solved)

Post by Roland »

How could I use Odyssey as default tool in Deficons? When I tried to change the default tool for 'html' from the original 'multiview' to 'path/Odyssey', and then clicked a .html file, Odyssey started normally (showing the path was correct) but only with an empty window. The file was ok, too, as Odyssey could load it if chosen manually, via menus.
Last edited by Roland on Wed Apr 07, 2021 8:12 pm, edited 1 time in total.
- Roland -
User avatar
Petrol
Beta Tester
Beta Tester
Posts: 175
Joined: Mon Dec 20, 2010 6:19 pm
Location: France

Re: Setting Odyssey as default tool in Deficons?

Post by Petrol »

Hi,

Alternatively, You can add Odyssey in FILE's tab of URL preferences program like this:
Client Name : ODYSSEY
Path : APPDIR:ODYSSEY
Command line : "*"file:///%s*""

You choose C:UrlOpen as default tool for html.

If you got several Client in URL preferences program, if you click on the icon of a html file, a requester pops up to choose which browser to use.

Regards,
Petrol.
Roland
Posts: 824
Joined: Tue May 02, 2017 7:23 am

Re: Setting Odyssey as default tool in Deficons?

Post by Roland »

Petrol wrote: Wed Apr 07, 2021 6:55 pm Alternatively, You can add Odyssey in FILE's tab of URL preferences program like this:
Client Name : ODYSSEY
Path : APPDIR:ODYSSEY
Command line : "*"file:///%s*""

You choose C:UrlOpen as default tool for html.

If you got several Client in URL preferences program, if you click on the icon of a html file, a requester pops up to choose which browser to use.
That was really smart way to solve the issue... Thank you very much !-)
- Roland -
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1714
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: Setting Odyssey as default tool in Deficons? (Solved)

Post by nbache »

Have either of you actually tried it?

I thought this (using UrlOpen as default tool) would be a solution, but it complained about the protocol not being found. And then when I tried to add the FILE argument after UrlOpen in the default tool gadget, it couldn't find a command called "UrlOpen FILE" ;-).

But I thought about making a small script/ARexx program which could build the command correctly and launch it, and then using the script as the Default tool - haven't had time to try it yet though.

At least it works to issue the command "UrlOpen FILE filename.html" in a Shell, so I think a script solution should be possible.

Best regards,

Niels
User avatar
Petrol
Beta Tester
Beta Tester
Posts: 175
Joined: Mon Dec 20, 2010 6:19 pm
Location: France

Re: Setting Odyssey as default tool in Deficons? (Solved)

Post by Petrol »

Hi Niels,

Maybe you don't have an APPDIR entry for Odyssey in "envarc:Appdir/ drawer"?
I've tried it again here, and it works as expected.

Image

Regards,
Petrol.
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1714
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: Setting Odyssey as default tool in Deficons? (Solved)

Post by nbache »

I do have Odyssey in APPDIR:, and my use of the launch-handler in general works fine (e.g. starting a browser from a link in a mail in YAM etc.).

But I see you have set (or left) the Icon to start in Workbench, I had changed mine to start from Shell, as I figured UrlOpen is a Shell command.

Also, my preliminary experiment was with a specific icon, not a deficon, which may or may not have an influence (it shouldn't, AFAIK, but who knows).

I'll try again.

But good that you can confirm that the solution works, I was just trying to make sure of that.

Best regards,

Niels
Roland
Posts: 824
Joined: Tue May 02, 2017 7:23 am

Re: Setting Odyssey as default tool in Deficons? (Solved)

Post by Roland »

nbache wrote: Wed Apr 07, 2021 9:44 pm Have either of you actually tried it?
Of course... Works fine here! (Iwould not have added 'solved' to the title unless I had tested it myself).
- Roland -
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1714
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: Setting Odyssey as default tool in Deficons? (Solved)

Post by nbache »

Roland wrote: Thu Apr 08, 2021 1:26 pm
nbache wrote: Wed Apr 07, 2021 9:44 pm Have either of you actually tried it?
Of course... Works fine here! (Iwould not have added 'solved' to the title unless I had tested it myself).
Yeah - I hadn't noticed that when I asked ;-)

Best regards,

Niels
User avatar
colinw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 207
Joined: Mon Aug 15, 2011 9:20 am
Location: Brisbane, QLD. Australia.

Re: Setting Odyssey as default tool in Deficons? (Solved)

Post by colinw »

I wrote the URLOpen program specifically with this use in mind,
it's mentioned in the URLOpen.doc in the second paragraph.

The FILE protocol is the default, you can specify other protocols
that you have configured, (as in the URL Prefs tabs) if they are
required, by using the PROTOCOL= keyword in the icon tooltype
or on the shell commandline, but as I said, FILE is the default.
Post Reply