bugGnash - The GNU Flash player - Bugs: bug #25776, .gnashrc urlOpenerFormat with...


bug #25776: .gnashrc urlOpenerFormat with Konqueror and javascript

Submitted by:  Juergen Heinemann <undefineds>
Submitted on:  Fri 06 Mar 2009 11:31:35 AM UTC  
Category: gui-kde3Severity: 3 - Normal
Release: trunkStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 06 Mar 2009 11:34:43 AM UTC, comment #1:

FYI: the urlOpenerFormat will not be used when gnash is invoked
with the -F switch. The NPAPI plugin uses this flag, which is safer.

Sandro Santilli <strk>
Project Member
Fri 06 Mar 2009 11:31:35 AM UTC, original submission:

The gnash Plugins send javascript: commands when urlOpenerFormat is set.
This Shellscript can fix this problem.

# Use the following command format to open urls if
# no host-request FD was given.
# The '%u' label will be substituted with the url
# to open.
# NOTE that the NPAPI plugin provides an host request FD
# to send url opening requests to.
# Default: firefox -remote 'openurl(%u)'
# set urlOpenerFormat browser.sh '%u'

konqueror="$(dcop --session .DCOPserver_`hostname`__0 konq* | head -1 2> /dev/null)"
if [ -n "$konqueror" ] && [ -n "$1" ] ; then
if test -n "`grep javascript: "$@"`" ; then
dcop $konqueror html-widget1 evalJS `echo "$1" | cut -d: -f3` 2> /dev/null
exit 1
dcop $konqueror konqueror-mainwindow#1 openURL "$1" 2> /dev/null
exit 0

kfmclient openProfile webbrowsing "$@" 2> /dev/null

Juergen Heinemann <undefineds>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by strk (Posted a comment)
  • -unavailable- added by undefineds (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup1