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-kde3 Severity:  3 - Normal
Release:  trunk Status:  None
Privacy:  Public Assigned 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 Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.4