"display-url" "1" "" "" "Starbuntu"

NAME

display-url - opens link files *.url or URL addresses with their appropriate application (provided by Starbuntu)

SYNOPSIS

display-url [1|2] "<address>"
display-url [1|2] <address file *.url>
display-url [1|2]
display-url -s

DESCRIPTION

With the Starbuntu program display-url you can open manifold external or local address types by means of the respectively appropriate application: HTTP pages (http(s)://...), FTP folders (ftp://...), SFTP folders (sftp://...), SSH folders (ssh://...), WebDAV folders (davs://...), local files (file://...), a window for composing an e-mail (mailto:...) etc.

This program can be called up in four possible ways:

  1. display-url [1|2] "<address>"

  2. display-url [1|2] <address file *.url>

  3. display-url [1|2] without an address parameter if this one, that means the address or the address file, has been sent to the (primary) selection. Otherwise a file selection dialogue gets started.

  4. display-url -s (switch) without an address parameter displays a web site opened in one of the two browsers also in the other one (hotkey: Ctrl+Shift+u within the first mentioned browser). This feature works only with the two preinstalled browsers and requires that the window names of the browsers are defined in the parameter file $HOME/.config/openbox/environment by means of the environment variables stdbrw_win and brw2_win. Caution: The window designation of a program often does not correspond to the program command. You can determine it after starting the corresponding program using the terminal command wmctrl -l. Another interesting thing is that the -s option, after marking a web address contained in a text, opens it in one of the two web browsers.

The preceding parameter "1" (default browser) or "2" (second browser) or "-s" (switch) is reasonable only if a second web browser is installed and a web address is being called or copied to the clipboard. Otherwise it will be ignored.

OPTIONS

-s (switch)
  A web address opened in one of the two browsers will also be opened in the other browser.
  or:
  A marked web address will be opened in one of the two browsers.

FILES

/usr/local/bin/display-url

ENVIRONMENT VARIABLES

stdbrw_win
  window name of the default browser
brw2_win
  window name of the second browser

Both environment variables can be set in $HOME/.config/openbox/environment.

AUTHOR

Peter Starfinger <info@die-starfingers.de>