RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1122447 - xdg-open cannot open virt-viewer connection file with right application over ssh
Summary: xdg-open cannot open virt-viewer connection file with right application over ssh
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: xdg-utils
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Alexander Larsson
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks: 1134653
TreeView+ depends on / blocked
 
Reported: 2014-07-23 09:43 UTC by CongDong
Modified: 2014-08-29 08:16 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1134653 (view as bug list)
Environment:
Last Closed: 2014-08-29 08:16:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description CongDong 2014-07-23 09:43:16 UTC
Description of problem:
when login the host over ssh, xdg-open cannot open virt-viewer connection with right application(remote-viewer)

Version-Release number of selected component (if applicable):
xdg-utils-1.1.0-0.16.20120809git.el7.noarch
virt-viewer-0.6.0-1.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. start a spice guest with qxl on host A
# virsh dumpxml $guest_name
...
    <graphics type='spice' port='5901' autoport='yes' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
...
    <video>
      <model type='qxl' ram='65536' vram='65536' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
...
2. Prepare a connection file for the guest:
# cat console.vv
[virt-viewer]
host=$host_A_ip
port=5901
type=spice
3. open console.vv with xdg-open
#xdg-open console.vv
4. login host A on another host B over ssh, and try to open consolve.vv with xdg-open
# ssh root@$host_A_ip -X
# xdg-open console.vv

Actual results:
Step3, a remote-viewer window comes out and connect the guest, this is expected.
Step4, the file console.vv is opened by gedit, this is not right.

Expected results:
Step4, the file should not be opened by gedit, remote-viewer should connect the guest.

Additional info:

Comment 2 Alexander Larsson 2014-08-29 08:16:00 UTC
As in bug 1134653, this works as "expected". xdg-open is really a desktop environment tool, it will not work in a "raw" ssh login. You can either directly use whatever desktop-specific open too you want, or you can set/forward the right environment variables from your source desktop machine into the ssh session so that the right environment is picked up.

Picking different default applications for a file for different desktop environments is "works as intended".


Note You need to log in before you can comment on or make changes to this bug.