PaulFransen schreef:
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.
Foxmarks lets you use your bookmarks worldwide from a firefox browser. -- Enjoy your time around, Oddball (Now or never...) OS: Linux 2.6.26-2-default x86_64 Huidige gebruiker: oddball@AMD64x2-sfn1 Systeem: openSUSE 11.0.42 (x86_64) Alpha0 KDE: 4.1.00 (KDE 4.0.99 (4.1 RC1+)) "release 13.1" -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org