Clickable URLs need context menu

Bug #85644 reported by Bruce Cowan
4
Affects Status Importance Assigned to Milestone
Software Updater
Fix Released
Undecided
Michael Vogt
update-manager (Ubuntu)
Fix Released
Wishlist
Michael Vogt

Bug Description

Binary package hint: update-manager

The new clickable URLs in feisty's update-manager are great, but there should be a context menu which appears if you right click on a link which says "Open Link" and "Copy Link Address". This means that opening the link in a new tab would be possible.

Changed in update-manager:
importance: Undecided → Wishlist
status: Unconfirmed → Confirmed
Revision history for this message
NoOp (glgxg) wrote :

Second this. At least please add the full url so that the url can be copied and pasted into an alternate browser. Currently if Firefox is not the default bowser set in System|Preferences|Preferred Applications the hidden link in the update description may not work. This results in two options: 1) set Fx as the
default browser, 2) hunt on Google/Yahoo/<searchengine> for 'launchpad
+<issuenumber>'.

Revision history for this message
NoOp (glgxg) wrote :

Here is a workaround for SeaMonkey:

For those who use Ubuntu (Gnome) I use the following in:
System|Preferences|Preferred Applications|Web Browser|Custom|Command

<fullpathtoSeaMonkey>/seamonkey -remote openURL("%s",new-tab)

Now when you click the link in the 'Changes' description of
Update-Manager, the link open a new tab in SeaMonkey (even if SM is
already open) and open the https://launchpad.net/bugs/<issuenumber>

<fullpathtoSeaMonkey>/seamonkey -remote openURL("%s",new-window)
also works.

Ref: http://www.mozilla.org/unix/remote.html

And a workaround for opening via a new tab in Firefox:

System|Preferences|Preferred Applications|Web Browser|
Command: firefox -new-tab "%s"
or for a new window -
firefox -new-window "%s"

Ref: http://kb.mozillazine.org/Command_line_arguments

I'd still very much like to see the full url of the link in the update-manager 'Changes' section so that one can view where clicking on the link will take them. Failure to do so can create a security issue in the future as it encourages clicking on a blind link.

Revision history for this message
XXXXXXX (yddraiggoch) wrote :

Attached a patched to add this feature

Revision history for this message
XXXXXXX (yddraiggoch) wrote :

Slightly improved the patch to add the url to the context menu, so that it's visible when right clicking LP bug links.

Revision history for this message
NoOp (glgxg) wrote :

Thanks very much for working on this Richie! No clue as to how to apply the patch, but I'm quite willing to 'test' if you'd like. I've a system that has both 8.04 & 8.10 on different drives and is only used for testing.

Michael Vogt (mvo)
Changed in update-manager:
assignee: nobody → mvo
status: Confirmed → Fix Committed
assignee: nobody → mvo
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-manager - 1:0.100

---------------
update-manager (1:0.100) jaunty; urgency=low

  [ Andy Whitcroft ]
  * DistUpgrade/cdromupgrade:
    - if cdromupgrade is run with a relative path we will fail to find the
      installer components and error out. Ensure that the path is absolute.
      (LP: #335360)

  [ Michael Vogt ]
  * fix crash when help is not avaialble (LP: #338098)
  * data/glade/UpdateManager.glade:
    - remove the "Keep your system up-to-date" text (design team,
      LP: #336800)
  * fix crash when no network is avaialble for changelog fetching
    (LP: #334002)
  * debian/control:
    - add conflict against update-manager-kde to update-manager-hildon
      (LP: #333464)
  * UpdateManager/Core/MyCache.py:
    - show proper urls for sources with epochs (LP: #328164), thanks
      to Richie
  * UpdateManager/ChangelogViewer.py:
    - support copy to clipboard for URLs (LP: #85644), thanks to
      Richie
  * UpdateManager/UpdateManager.py:
    - disable fixed-hight mode, it can cause incorrect height
      calculation (thanks to Richie), LP: #273184
  * DistUpgrade/DistUpgradeController.py:
    - do not allow gtk/kde upgrades over ssh session (LP: #322482)
  * merged aufs branch (disabled by default but useful for testing)

 -- Michael Vogt <email address hidden> Tue, 10 Mar 2009 20:25:55 +0100

Changed in update-manager:
status: Fix Committed → Fix Released
Revision history for this message
NoOp (glgxg) wrote :

I've just updated from hardy to jaunty.

Right clicking on the url now offers the option to copy the url to the clickboard & works - thanks.
However, update-manager no longer honors the browser settings in gnome-default-applications-properties (System|Preferences|Preferred Applications), and only opens the url in Firefox. My browser settings are:

<fullpathtoSeaMonkey>/seamonkey -remote openURL("%s",new-tab)

and that works fine in hardy. In Jaunty w/the new patches, it doesn't matter if the browser is set to Opera, SeaMonkey, Epiphany, or any other browser, the update-manager url now only opens Firefox.

I have verified that other applications (OpenOffice - both Ubuntu & standard OpenOffice.org etc.) respect the gnome-default-applications-properties.

Revision history for this message
NoOp (glgxg) wrote :

For SeaMonkey 2.x the above command is:

<fullpathtoSeaMonkey>/seamonkey -new-tab "%s"

Revision history for this message
NoOp (glgxg) wrote :

For some reason or recent change, links in Update Manager now defaults to the epiphany browser regardless of which browser is set in System|Preferences|Preferred Applications.

$ cat ~/.gconf/desktop/gnome/applications/browser/%gconf.xml
<?xml version="1.0"?>
<gconf>
 <entry name="exec" mtime="1275415696" type="string">
  <stringvalue>seamonkey2</stringvalue>
 </entry>
 <entry name="nremote" mtime="1275415696" type="bool" value="true"/>

Same occurs even if the full path to the browser is provided, and if Firefox is set as preferred.

Revision history for this message
NoOp (glgxg) wrote :

Forgot to add:
$ apt-cache policy update-manager
update-manager:
  Installed: 1:0.134.8
  Candidate: 1:0.134.9
  Version table:
     1:0.134.9 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid-proposed/main Packages
 *** 1:0.134.8 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
        100 /var/lib/dpkg/status
     1:0.134.7 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages

$ cat ~/.gconf/apps/update-manager/%gconf.xml
<?xml version="1.0"?>
<gconf>
 <entry name="show_versions" mtime="1275069194" type="bool" value="true"/>
 <entry name="window_size" mtime="1275072807" type="pair">
  <car type="int" value="600"/>
  <cdr type="int" value="600"/>
 </entry>
 <entry name="first_run" mtime="1273004780" type="bool" value="false"/>
 <entry name="show_details" mtime="1274288905" type="bool" value="true"/>
 <entry name="launch_time" mtime="1275414562" type="int" value="1275414562"/>
</gconf>

Revision history for this message
NoOp (glgxg) wrote : Re: [Bug 85644] Re: Clickable URLs need context menu
Michael Vogt (mvo)
Changed in update-manager:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.