Using

Scripting

Browser Configuration

When opening a URL either from the context menu or Ctrl+Click, XChat attempts to use the default browser as specified by your computer. XChat does not have a means of specifying the default browser to use within XChat, although it is capable of specifying alternate browsers to use.

Setting the Default Browser

Windows

Windows has a registry key which is set for the default browser, since browsers on Windows are able to change this value, changing the default browser is normally done within the browser you wish to use.

Linux

On Linux, different Desktop Environments have different methods of specifying the default browser. Most distributions come with a program called xdg-open which is used for opening links. To test if your system has this command and to see which browser XChat will open links in, open a terminal window and type: xdg-open http://www.google.com/

If xdg-open is not on your system, XChat will first attempt to determine if you are on KDE or Gnome and then use an application based on that (gnome-open for Gnome and kfmclient exec for KDE), or if it cannot determine, use firefox.

To set the browser which is used depends on the Desktop Environment:

Gnome

System > Preferences > Preferred Applications

KDE 4

KDE Menu > Computer > System Settings > Default Applications > Web Browser

KDE 3

KDE Menu > Control Center > KDE Components > File Associations. Expand the text tree item and select html. Change the order of the applications.

Open Box & XFCE

Main Menu > Preferences > Preferred Applications

Other

For other Desktop Environments, if xdg-open does exist, there are potentially two alternatives you can use:

  1. On newer systems, FreeDesktop has specified a xdg-settings script. To update the browser, you would use the form:
    xdg-settings set default-web-browser browsername.desktop
    • Common values for browsername.desktop would be firefox.desktop, iceweasel.desktop, opera.desktop
  2. On Debian based systems, you may be able to use update-alternatives --config x-www-browser and select the browser from the provided options (assuming the options were added). You may also have have one of the gui configuration utilities from another DE on your computer that may make the appropriate changes:
    • gnome-default-applications-properties
    • exo-preferred-applications


Print - Recent Changes - Search
Page last modified on June 09, 2010, at 12:14 PM