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

 
 

bug #25776: .gnashrc urlOpenerFormat with Konqueror and javascript

Submitter:  Juergen Heinemann <undefineds>
Submitted:  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
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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.
[CODE]
#!/bin/sh

###
# 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
  else
    dcop $konqueror konqueror-mainwindow#1 openURL "$1" 2> /dev/null
    exit 0
  fi
fi

kfmclient openProfile webbrowsing "$@" 2> /dev/null
[/CODE]

Juergen Heinemann <undefineds>

 

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

Attach Files:
   
   
Comment:
   

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code