[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensuse
Subject:    [opensuse] launching MS-Windows shortcuts from Konqueror
From:       PaulFransen <send.me () xs4all ! nl>
Date:       2008-07-29 4:28:10
Message-ID: 200807290628.10218.send.me () xs4all ! nl
[Download RAW message or body]

I have a large number of MS-Windows internet shortcuts which I would like to 
keep on using from within Konqueror. It took me some time to figure this out 
so I am reporting here how it can be accomplished.

I have modified the script that can be found at
        http://ubuntuforums.org/showthread.php?t=324517
into a script which I named mswinurl-launch:

#! /bin/bash
#
# See http://ubuntuforums.org/showthread.php?t=324517 for reference.
# MSWindows .url files may have different levels of complexity. The web
# address searched for is always of the format: URL=http[and so on]
# tr filters out the end-of-line and carriage return characters.
# The caret makes grep search for a beginning of line.
# The quotes surrounding $1 are needed to accomodate url filenames
# containing spaces.
FFOPENURL=$(grep -a -G ^URL=* "$1" | tr '\r' '\n')
firefox ${FFOPENURL#*=}

Obviously, Firefox can be substituted by Konqueror for web browsing as well: 
replace the last line by: kfmclient openURL ${FFOPENURL#*=}



Then, the script should be associated with the .url file type:

1.      Open Konqueror, select Settings > Configure Konqueror
2.      Select File Associations and then url
3.      The url file type is listed as a text association, but aan application 
association is needed.
        3.1     Click on the button Add (the one under the pane displaying 
x-mswinurl).
        3.2     Enter x-mswinurl
        3.3     Select application as the Group.
        3.4     Click another Add button (the one under Filename Patterns) and 
add the 
extensions *.url and *.URL.
        3.5     Enter Internet shortcut in the field Description.
        3.6     Click another Add button (the one under Application Preference 
Order) and 
select the program [path to script]mswinurl-launch
        3.7     As the icon, select the shining blue globe.
        3.8     Press Apply
4.      Delete the text type association and press OK.


Best regards,

Paul.
-- 
To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse+help@opensuse.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic