+ Post New Thread
Results 1 to 10 of 10
*nix Thread, Firefox on eeePC - how do you save/create shortcuts in Technical; Help! HMI inspection tomorrow and we've just found out that shortcuts created by IE in windows and saved to shared ...
  1. #1

    SimpleSi's Avatar
    Join Date
    Jun 2005
    Location
    Lancashire
    Posts
    5,824
    Thank Post
    1,476
    Thanked 593 Times in 445 Posts
    Rep Power
    168

    Exclamation Firefox on eeePC - how do you save/create shortcuts

    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

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

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

    regards

    Simon

  2. #2


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    put the links onto a website

  3. #3
    Jona's Avatar
    Join Date
    May 2007
    Location
    Cranleigh
    Posts
    470
    Thank Post
    14
    Thanked 50 Times in 48 Posts
    Rep Power
    23
    Well I guess this is because IE bookmarks are a format unique to MS, It's possible to import them see: Import bookmarks - MozillaZine Knowledge Base

    I use foxmarks to manage my personal bookmarks which means they sync automatically see: Foxmarks

    Cheers
    Jona

  4. #4

    SimpleSi's Avatar
    Join Date
    Jun 2005
    Location
    Lancashire
    Posts
    5,824
    Thank Post
    1,476
    Thanked 593 Times in 445 Posts
    Rep Power
    168
    @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

  5. #5

    SimpleSi's Avatar
    Join Date
    Jun 2005
    Location
    Lancashire
    Posts
    5,824
    Thank Post
    1,476
    Thanked 593 Times in 445 Posts
    Rep Power
    168
    I've got as far as this script
    Code:
    #! /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

  6. #6


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    Code:
    firefox `cat $1 | grep -v BASEURL= | grep URL= | sed 's/URL=//g'`
    is this kde or the default simple menu?

  7. #7

    SimpleSi's Avatar
    Join Date
    Jun 2005
    Location
    Lancashire
    Posts
    5,824
    Thank Post
    1,476
    Thanked 593 Times in 445 Posts
    Rep Power
    168
    default simple menu

    Where do you suggest I stick your code

    regards
    Simon

  8. #8


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    create a file in /usr/local/bin called something like url.sh
    Code:
    #! /bin/bash
    firefox `cat $1 | grep -v BASEURL= | grep URL= | sed 's/URL=//g'`
    and make it executable.
    Code:
     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 ?.

  9. #9

    SimpleSi's Avatar
    Join Date
    Jun 2005
    Location
    Lancashire
    Posts
    5,824
    Thank Post
    1,476
    Thanked 593 Times in 445 Posts
    Rep Power
    168
    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
    Code:
    [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

    Code:
    [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

  10. #10

    SimpleSi's Avatar
    Join Date
    Jun 2005
    Location
    Lancashire
    Posts
    5,824
    Thank Post
    1,476
    Thanked 593 Times in 445 Posts
    Rep Power
    168
    Nearly there (inspection over now of course !)

    Code:
    #!/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

SHARE:
+ Post New Thread

Similar Threads

  1. The Asus eeePc
    By Pete10141748 in forum General Chat
    Replies: 10
    Last Post: 1st May 2008, 09:42 AM
  2. HP Get on the eeePC bandwagon.
    By Geoff in forum Hardware
    Replies: 0
    Last Post: 9th April 2008, 09:31 AM
  3. Have you had a Eeepc trial?
    By FN-GM in forum Hardware
    Replies: 18
    Last Post: 28th March 2008, 08:46 AM
  4. eeePC possible problem
    By localzuk in forum Hardware
    Replies: 5
    Last Post: 22nd February 2008, 09:47 AM
  5. Removing ablitiy to create shortcuts.
    By Gambit in forum Windows
    Replies: 15
    Last Post: 13th September 2007, 07:35 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •