Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
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 2Alexander 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".
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: