Jump to content

Firefox on eeePC - how do you save/create shortcuts


Recommended Posts

Posted

Help!

 

HMI inspection tomorrow and we've just found out that shortcuts created by IE in windows and saved to shared folder don't open in Firefox on eeePC :eek:

 

Doesn't seem to be a way to create them from Firefox on eeePC either :eek:

 

Any ideas (apart from running around all 24 of the little darlings!)

 

regards

 

Simon

Posted

@cybernerd

could do but then I'd need a shortcut to the website - catch 22 :) (and not really practical to setup in 15 hours :( )

 

@jona

 

Its individual links I'm after - I've trained teachers over the years just to send a shortcut to the desktop and then copy that shortcut to their class shared area and then direct class to their shared area and double-click the shortcut - thats the functionality I'm after :)

 

regards

 

Simon

Posted

I've got as far as this script

#! /bin/bash
cat $1 | grep -v BASEURL= | grep URL= | sed 's/URL=//g'

 

which will parse the url file and return just the address but I can't seem to work out how to associate the suffix .url with running this script.

 

You can seem to do it in File Manager (which is where I want to run it from) but any changes I make don't seem to stick - I can't even get it just to open it in kwrite :(

 

regards

 

Simon

Posted

create a file in /usr/local/bin called something like url.sh

#! /bin/bash
firefox `cat $1 | grep -v BASEURL= | grep URL= | sed 's/URL=//g'`

 

and make it executable.

 chmod u+x /usr/local/bin/url.sh

 

Then associate the .url extensions with that script, when you click they should open in firefox.

 

I'm really not too sure how to get the file association working in the simple menu (icewm) though. It should be- Control Center -> File Manager -> File Associations. But the filemanager is konqeror (a kde app) and this might be why it doesn't save in simple menu ?.

Posted

1 step forward - 1 back :(

 

Set FIrefox as the application to open *.url

 

When Firefox says what shall I do with it - say open with url.sh script and say remember.

 

That works! :)

 

Unfortunately - some .url files don't follow the same pattern as others so I need to go back to the parsing script again

e.g

[DEFAULT]
BASEURL=http://www.bbc.co.uk/
[internetShortcut]
URL=http://www.bbc.co.uk/
Modified=201A631F52A9C80180
IconFile=http://www.bbc.co.uk/favicon.ico
IconIndex=1

was the one i assumed they all followed and theni found this one

 

[DEFAULT]
BASEURL=http://www.express.co.uk/
[DOC_miva]
BASEURL=http://contentsearch.espotting.com/search/content/implementations/results.asp?affiliateid=5128&resulttype=dailyexpress_skyscraper&contentidentifier=Exnews&hits=2
ORIGURL=http://contentsearch.espotting.com/search/content/implementations/results.asp?affiliateid=5128&resulttype=dailyexpress_skyscraper&contentidentifier=Exnews&hits=2
[internetShortcut]
URL=http://www.express.co.uk/
Modified=7006DFE10A3BC70143
IconFile=http://www.express.co.uk/favicon.ico
IconIndex=1

Posted

Nearly there (inspection over now of course !)

 

#!/bin/bash

urltest1=`cat $1 |  grep ORIGURL=`
if [ $? != 0 ]; then
  urltest2=`cat $1 | grep BASEURL=`
  if [ $? != 0 ]; then
     firefox `cat $1 | grep URL= | sed 's/URL=//g'`
  else
     firefox `cat $1 | grep BASEURL= | sed 's/BASEURL=//g'`
  fi
else
  firefox `cat $1 | grep ORIGURL= | sed 's/ORIGURL=//g'`
fi

 

Works for the 3 different types i've found so far

 

Couple of issues - it generates a blank tab and the wanted tab and also it doesn't switch focus to FIrefox - is their a method of forcing that?

 

regards

 

Simon

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...