![]() | ![]() | ![]() | *preferred-browser* | ![]() |
| [Variable] |
Purpose
Specify the preferred browser program.
Package :common-lisp-user
Module Defined in startup.lisp
Value type A string
Initial value (see the first example below)
Description
To change the preferred browser, set the value of
*preferred-browser*
gbbopen-init.lisp
startup.lisp
startup.lisp
See also
browse-hyperdoc
Examples
Here is the setting that is made in startup.lisp
(defvar *preferred-browser* ;; On Mac OSX we defer to the OS default browser: #+(or macosx darwin) "open" ;; LispWorks (non-Windows) and SBCL do not search PATH for programs, so ;; the path must be explicitly included in the preferred browser setting: #+(or (and lispworks (not win32)) sbcl) "/usr/bin/firefox" #-(or macosx darwin (and lispworks (not win32)) sbcl) "firefox")
Specify a different browser (in a personal gbbopen-init.lisp
(in-package :common-lisp-user) #+linux (setf *preferred-browser* ;; Lispworks (non-Windows) and SBCL do not search PATH for programs, so ;; the path must be explicitly included in the preferred browser setting: #+(or lispworks sbcl) "/usr/bin/opera" #-(or lispworks sbcl) "opera")
Note
LispWorks (non-Windows
platforms) and SBCL do not perform a
PATH
search for programs, so the browser-program path must be explicitly
included in the preferred browser setting.
The GBBopen Project
![]() | ![]() | ![]() | *preferred-browser* | ![]() |