[prev in list] [next in list] [prev in thread] [next in thread]
List: quanta
Subject: Re: [Quanta] (no subject)
From: Andrew Lowe <andrew.lowe () manildra ! com ! au>
Date: 2007-06-18 5:38:53
Message-ID: 200706181538.57099.andrew.lowe () manildra ! com ! au
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
[Attachment #4 (multipart/mixed)]
On Mon, 18 Jun 2007 13:07:01 Vlad Blanton wrote:
> <snip>
>
> > If anyone can think of an action to handle ies4linux - they could post it
> > to the list - and perhaps post to Hot New Stuff... :-)
>
> Absolutely please do! I agree with you about just opening the browser.
> I found it easiest to open a window in some browser (firefox/konqi, etc)
> copy the address into ie and put a Z: in front of the address. Works
> fast enough for me. Messing with the quanta scripts didn't work for me
> because of the aforementioned KURL "feature". trimming is probably the
> best way, but I don't really have the skills to do it at the moment :(.
>
> Vlad
>
OK I made this work for ies4linux....
You do have to edit the externalpreview.sh script in quanta's scripts
directory (locate externalpreview.sh should help you find the location).
I will attach the file with changes....
Basically I have written a new rule that if the browser starts with ie, remove
the file:// and add a z:\ to the url. This should work with local files...
Next, just copy the action for open in Firefox, replacing firefox with ie6 (or
whatever version you want), and remove the tab argument.
Attached is the new externalpreview.sh and the configure actions screenshot
for ie6. Put a diff between versions of externalpreview.sh at the bottom of
the body of this email too...
Hope this helps everyone out there.... it is not fully tested - seems to work
with a file in my user directory (file:///home/alowe/test.html) with both ie6
and ie5.5 - but I have not extensively tested this as I do not do that much
with straight html - so you might want too...
--
Andrew Lowe
System Administrator & Programmer
Information Technology
Manildra Group
Email: andrew.lowe@manildra.com.au
Phone: 02 4423 8270
Mobile: 04 1323 8270
Fax: 02 4421 7760
diff /usr/share/apps/quanta/scripts/externalpreview.sh \
/home/alowe/kde-svn/kdewebdev/quanta/scripts/externalpreview.sh 2c2
< #Previews the current document in Mozilla/Netscape/Opera/IE, depending
---
> #Previews the current document in Mozilla/Netscape/Opera, depending
18c18
< if [ ${browser#ie} != ${browser} ];
---
> if ! $browser -remote "openURL($currentURL,$newTab)"
20,33c20,22
< translatedURL=${currentURL#file://}
< if [ $translatedURL != $currentURL ];
< then
< $browser "z:\\$translatedURL"
< else
< $browser $currentURL
< fi
< else
< if ! $browser -remote "openURL($currentURL,$newTab)"
< then
< $browser $currentURL
< fi
< fi
< fi
---
> $browser $currentURL
> fi
> fi
\ No newline at end of file
["ie6.png" (image/png)]
["externalpreview.sh" (application/x-shellscript)]
#!/bin/bash
#Previews the current document in Mozilla/Netscape/Opera, depending
#on the last two arguments (browsername, newtab command).
#Might be adjusted in the feature to support more browsers.
pid=$1
currentURL=""
if test $pid == "unique"
then
currentURL=`dcop quanta WindowManagerIf saveCurrentFile`
shift
else
currentURL=`dcop quanta-$pid WindowManagerIf saveCurrentFile`
fi
browser=$2
newTab=$3
if test $currentURL
then
if [ ${browser#ie} != ${browser} ];
then
translatedURL=${currentURL#file://}
$browser "z:\\$translatedURL"
else
if ! $browser -remote "openURL($currentURL,$newTab)"
then
$browser $currentURL
fi
fi
fi
["signature.asc" (application/pgp-signature)]
_______________________________________________
Quanta mailing list
Quanta@mail.kde.org
https://mail.kde.org/mailman/listinfo/quanta
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic