html and postscript viewer
mark.brethen at gmail.com
Wed Mar 30 18:45:52 PDT 2016
According to the documentation these parameters are actually the names of shell scripts that CGX runs to open the viewers. For example, the instruction for the html viewer are as follows:
Create the shell script, respectively a file with filename “firefox“ (or any other file- name) in a directory of your choice: “dir_your_choice“ (for example your HOME: /Users/LOGNAME) by using an editor of your choice. Next, insert the following two
lines in file: “firefox“, then safe and quit the file:
open -a Firefox $1
The above shell script “firefox” enables to launch Firefox from a Terminal window with command: $ firefox <input> <return>. In the second line of the above script: "open" opens application (-a) Firefox, input is passed via “$1”.
> On Mar 30, 2016, at 8:14 PM, Ryan Schmidt <ryandesign at macports.org> wrote:
> On Mar 30, 2016, at 8:11 PM, Mark Brethen wrote:
>> Culculix CGX is setting a default html (firefox) and postscript (gv) viewer. For mac users, they recommend changing ‘gv’ to ‘preview’ but give no recommendation for a browser. I thought I’d ask here whether to keep it firefox or change it to something else? Safari?
> OS X lets the user specify their preferred browser. This setting can be changed in Safari's preferences window. You should respect that preference.
> How does Culculix CGX invoke the web browser? If it does so by running a command (such as "firefox" on other platforms), then you can use my openbrowser port and the openbrowser command it provides to accomplish that.
> If they run a command to invoke a the PostScript viewer, then you would probably use "open -a Preview.app" to open Preview.
More information about the macports-dev