Jump to content

Linux: open movies in firefox


Recommended Posts

Most linux users probably have figured this out - but maybe some find this tip useful.

 

Scenario

I want to view a .lin file with the BBO-client, installed in wine under linux, when I click a link to a .lin file in Firefox.

 

Create a script which is used as a launcher in Firefox - example openlin.sh

#!/bin/bash
loc="C:\\Bridge Base Online\\NetBridgeVu.exe"
par=`winepath -w "$*"`
wine "$loc" "$par"
exit 0

Be sure to make it executable chmod +x openlin.sh.

Next time you click a .lin file in Firefox, Open With - locate openlin.sh - and check "Do this from now on..".

Link to comment
Share on other sites

×
×
  • Create New...