Bug 1044209

Summary: remote-viewer not invoked from "xdg-open console.vv" command
Product: [Fedora] Fedora Reporter: Aram Agajanian <agajania>
Component: virt-viewerAssignee: Daniel Berrangé <berrange>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: berrange, cfergeau, vg.aetera, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-viewer-0.6.0-1.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1063238 1063239 (view as bug list) Environment:
Last Closed: 2014-03-11 04:01:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Aram Agajanian 2013-12-17 22:16:30 UTC
Description of problem:

I have noticed that remote-viewer isn't getting automatically run when I try to bring up a virtual desktop from the RHEV User Portal with the Epiphany web browser.  Instead, the downloaded vv file is opened in gedit.

I have found that when I run the following command, the console.vv file gets opened in gedit instead of remote-viewer.

xdg-open console.vv


Version-Release number of selected component (if applicable):
virt-viewer-0.5.7-1.fc20.x86_64


How reproducible:  
Happens every time.


Steps to Reproduce:
1.  Download a console.vv file from the RHEV User Portal by attempting to open a SPICE console in Native Mode.
2.  Run the command "xdg-open console.vv" on the file that was just downloaded.


Actual results:
The console.vv file is opened with gedit.


Expected results:
The console.vv file should be opened with remote-viewer.

Comment 1 Aram Agajanian 2013-12-17 23:04:39 UTC
As was suggested on IRC, I ran the following command and the problem went away.

su -c "update-mime-database /usr/share/mime"

Comment 2 Christophe Fergeau 2013-12-18 10:18:03 UTC
Sent patch upstream 
https://www.redhat.com/archives/virt-tools-list/2013-December/msg00036.html

Comment 3 Fedora Update System 2014-02-26 12:55:07 UTC
virt-viewer-0.6.0-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/virt-viewer-0.6.0-1.fc20

Comment 4 Fedora Update System 2014-02-28 18:34:06 UTC
Package virt-viewer-0.6.0-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing virt-viewer-0.6.0-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-3202/virt-viewer-0.6.0-1.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-03-11 04:01:43 UTC
virt-viewer-0.6.0-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.