Setting Odyssey as default tool in Deficons? (Solved)
Setting Odyssey as default tool in Deficons? (Solved)
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 -
Re: Setting Odyssey as default tool in Deficons?
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.
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.
Re: Setting Odyssey as default tool in Deficons?
That was really smart way to solve the issue... Thank you very much !-)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.
- Roland -
- nbache
- 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)
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
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
- nbache
- 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)
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
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
Re: Setting Odyssey as default tool in Deficons? (Solved)
Of course... Works fine here! (Iwould not have added 'solved' to the title unless I had tested it myself).
- Roland -
- colinw
- 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)
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.
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.