Desktop tool for managing virtual machines via libvirt
Go to file
Michael Weghorn db1b2fbce3 Use GtkFileChooserNative
Use GtkFileChooserNative [1] instead of GtkFileChooserDialog [2]
to integrate better with the platform (e.g. use the portal
implementation when run with GTK_USE_PORTAL=1, resulting in
the KDE Frameworks implementation being used when
xdg-desktop-portal-kde is in use). Quoting from
the GtkFileChooserDialog doc [2]:

> If you want to integrate well with the platform you should use the
> GtkFileChooserNative API, which will use a platform-specific dialog if
> available and fall back to GtkFileChooserDialog otherwise.

Also replace the use of GTK_STOCK_CANCEL [3] and GTK_STOCK_OPEN [4]
which were deprecated in GTK 3.10:

Both, the `accept_label` and `cancel_label` params of
`Gtk.FileChooserNative.new` can be `None` to use the default
text ("Open", "Cancel"). [5]

Adjust the only caller (in `vmmVMWindow#_takeScreenshot`)
that was passing an explicit label/icon name for the
accept button to pass `_("_Save")` as label, rather than
the also deprecated Gtk.STOCK_SAVE [6].
(GtkFileChooserDialog has special handling for Gtk.STOCK_SAVE
etc., but that's not generally the case for native dialogs).

Rename the method param from `choose_button` to `choose_label`
to make clearer that this is a label.

[1] https://docs.gtk.org/gtk3/class.FileChooserNative.html
[2] https://docs.gtk.org/gtk3/class.FileChooserDialog.html
[3] https://docs.gtk.org/gtk3/const.STOCK_CANCEL.html
[4] https://docs.gtk.org/gtk3/const.STOCK_OPEN.html
[5] http://pygobject-doc.gitee.io/pgi-docs/Gtk-3.0/classes/FileChooserNative.html#Gtk.FileChooserNative.new
[6] https://docs.gtk.org/gtk3/const.STOCK_SAVE.html

Fixes #315
2024-04-07 15:54:47 -04:00
.github Tweak for codecov v4 2024-04-07 14:27:17 -04:00
data data: appstream: add launchable tag 2023-09-10 11:20:29 -04:00
man systray: Cleanups and improvements for --show-systray 2024-03-03 14:18:04 -05:00
po po: sort LINGUAS 2024-03-04 06:26:27 +01:00
tests tests: Fix host-copy XML with libvirt 10.1.0 2024-04-06 15:48:46 -04:00
ui virtManager: add support to create external snapshots 2024-03-25 13:21:50 +01:00
virtinst hostdev: Fix error when mdev type_id is missing 2024-04-06 15:54:09 -04:00
virtManager Use GtkFileChooserNative 2024-04-07 15:54:47 -04:00
.coveragerc tests: Add full test coverage for progress text output 2021-06-09 16:52:12 -04:00
.gitignore Add the translation catalog 2020-07-11 14:59:56 -04:00
.gitpublish Rename 'master' branch to 'main' 2022-02-03 15:23:45 -05:00
.mailmap Update mailmap 2022-06-13 13:49:54 -04:00
.packit.yaml Packit: initial enablement 2023-01-19 14:04:42 -05:00
.pylintrc misc: fix spelling 2021-10-04 16:26:08 -04:00
CONTRIBUTING.md docs: update flow of translations from Weblate 2024-01-02 10:58:39 +01:00
COPYING COPYING: use license file from gnu.org 2021-10-04 16:26:08 -04:00
DESIGN.md DESIGN.md: disk serial is back, but disk detect zeroes is gone 2022-03-09 13:30:16 -05:00
INSTALL.md INSTALL: Correctly document that we require pygobject >= 3.31.1 2022-02-20 12:31:52 -05:00
MANIFEST.in Add DESIGN.md 2020-01-26 12:14:18 -05:00
NEWS.md Prep for release 4.1.0 2022-08-04 15:53:33 -04:00
README.md README.md: clarify mailing list patch usage 2021-07-30 12:02:13 -04:00
setup.cfg setup: Add --tb=native to pytest options 2020-08-26 15:20:06 -04:00
setup.py build: use setuptools.command.build when available 2024-04-07 14:29:48 -04:00
virt-clone virt-*: invoke python3 using /usr/bin/env 2021-10-04 16:26:08 -04:00
virt-install virt-*: invoke python3 using /usr/bin/env 2021-10-04 16:26:08 -04:00
virt-manager virt-*: invoke python3 using /usr/bin/env 2021-10-04 16:26:08 -04:00
virt-manager.spec rpm: convert license to SPDX format 2023-05-07 12:40:05 -04:00
virt-xml virt-*: invoke python3 using /usr/bin/env 2021-10-04 16:26:08 -04:00

Virtual Machine Manager

virt-manager is a graphical tool for managing virtual machines via libvirt. Most usage is with QEMU/KVM virtual machines, but Xen and libvirt LXC containers are well supported. Common operations for any libvirt driver should work.

Several command line tools are also provided:

  • virt-install: Create new libvirt virtual machines
  • virt-clone: Duplicate existing libvirt virtual machines
  • virt-xml: Edit existing libvirt virtual machines/manipulate libvirt XML

For dependency info and installation instructions, see the INSTALL.md file. If you just want to quickly test the code from a git checkout, you can launch any of the commands like:

./virt-manager --debug ...

Contact