Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Allow multiple VNC windows #132

Merged
merged 1 commit into from Dec 17, 2017

Conversation

enen92
Copy link
Contributor

@enen92 enen92 commented Mar 6, 2017

Description

This PR adds a new advanced setting (or configuration flag) - multiple_vnc to OXM so multiple VNC windows can be opened at the same time. By default the flag is set to False, so the behavior of OXM continues to be the same.

Motivation and Context

My use case for OXM requires multiple VM VNC windows to be opened so I can perform network experiments and see the live communication between virtual machines. This is something I can achieve using Citrix XenCenter but not with OpenXenmanager. By default, OXM will remove any VNC session if the tab selected is different from "console". This PR changes this behavior by keeping dictionaries for the gtk-vnc objects, gtk windows (if undocked) and vnc pid's (osx). Also, under OSX, if you close the external VNC window OXM fails to close. Added a few changes to the "exiting" logic so OXM can close gracefully.

How Has This Been Tested?

It was extensively tested (manually) in OSX (using tigerVNC) and Linux (Arch Linux and Lubuntu). Some testing was done for Windows.

Screenshots (if appropriate):

OXM

Types of change

  • New feature (non-breaking change which adds functionality)

Roadmap

It would be great if this could be accepted and merged upstream so I don't have to keep a separate version. I plan to improve a bit the reboot (ctr+alt+del) logic if the vnc window is undocked in Linux. Right now, the window is being closed and the user has to manually select the console tab again to access the VNC. In the future I plan to restart the VNC session in the window itself like the XenServer client.

Multiple VNC windows under linux - advanced setting

Remove prints / typos

Fixes

Improvements to multi vnc
@enen92
Copy link
Contributor Author

enen92 commented Mar 6, 2017

I'll address codacy and codeclimate comments when I have some time.

@TwoWheelDev TwoWheelDev merged commit 61e196a into OpenXenManager:master Dec 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants