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

Added "set as dvm template" to VM settings #151

Merged
merged 1 commit into from
Feb 25, 2019

Conversation

marmarta
Copy link
Member

@marmarta marmarta commented Feb 6, 2019

Added an 'Advanced' settings checkbox that allows the user to set a given
VM as template fo dispvms. It sets both the template_for_dispvms property
and the appmenus-dispvm feature - instead of delving into particulars
of how and which should be set, the user can just turn off the
whole setting if they want to make some changes in the vm and then turn
it on again.

fixes QubesOS/qubes-issues#4004

self.vm.template_for_dispvms = \
self.dvm_template_checkbox.isChecked()
self.vm.features["appmenus-dispvm"] = \
1 if self.dvm_template_checkbox.isChecked() else ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case of disabling this setting, I'd remove appmenus-dispvm feature, instead of setting it to false.

BTW setting features to bool values is supported - they will be converted to appropriate values (1, empty) preserving true/false semantics.

@marmarta marmarta force-pushed the bugfix4004 branch 2 times, most recently from 994bff0 to 011d9df Compare February 13, 2019 12:45
<string/>
</property>
<property name="text">
<string>Allow starting Disposable VMs from this qube</string>
Copy link
Member

@marmarek marmarek Feb 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is yet another example why we need to settle on a solid definitions of VM vs Qube. I'll comment on QubesOS/qubes-issues#1015

Added an 'Advanced' settings checkbox that allows the user to set a given
VM as template fo dispvms. It sets both the template_for_dispvms property
and the appmenus-dispvm feature - instead of delving into particulars
of how and which should be set, the user can just turn off the
whole setting if they want to make some changes in the vm and then turn
it on again.

fixes QubesOS/qubes-issues#4004
@marmarek marmarek merged commit ef6288f into QubesOS:master Feb 25, 2019
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.

Qube Manager: Create dvm-templates
2 participants