Extension:SmbLinks

What can this extension do?
If you use interwikilinks to local Windows shares with this format "file://///windows_share", Linux and Mac users are not able to follow them.

This extension changes the link according to the client OS to "smb://windows_share"

This extension also allowes links to Windows shares with spaces in Path. Spaces must be replaces with %_ in the link. It is a workaround for the %20 problem.

Usage
For Links to your local Windows share you have to add a link to the interwiki Table. e.g.: (windows_share, file://///windows_share/$1, 0, 0

Please refer interwiki.

I have installed the Extension:SpecialInterwiki for that purpose.

A link to your windows shares in Wiki \\windows_share\file.txt will look like:

File

MS Windows
On MS Windows machines, Firefox need to enable local file links:
 * manual: http://kb.mozillazine.org/Links_to_local_pages_do_not_work
 * Addon:

Linux
On Linux macines we have to register smb: protocol handler.

Open "about:config" and add the following settings:

 network.protocol-handler.expose.smb = false (Typ: boolean) network.protocol-handler.external.smb = true (Typ: boolean) 

Next time you click an smb: Link firefox ask you for an application. select "/usr/bin/gnome-open". gnome-open does not mount the location. So ensure sat you have opened the window share with nautilus before. we have to make a workaround with a script because firefox does not allow do add additional parameters
 * For Gnome:
 * For KDE:

Testet with:
 * Firefox 3.6.8 on Ubuntu 9.10
 * Firefox 3.5.10 on OpenSuse 11.0

MAC OS
... TODO ...

Installation
To install this extension, add the following to :