2019-11-22 14:55:09 +01:00
|
|
|
#!/usr/bin/python3
|
2012-08-06 14:57:30 +02:00
|
|
|
|
2017-12-05 03:59:34 +01:00
|
|
|
from qubesadmin import Qubes
|
2012-08-06 14:57:30 +02:00
|
|
|
|
|
|
|
def main():
|
2017-12-05 03:59:34 +01:00
|
|
|
app = Qubes()
|
|
|
|
for vm in app.domains:
|
|
|
|
if vm.klass == 'DispVM' and not vm.is_running():
|
|
|
|
if vm.auto_cleanup:
|
2017-12-14 02:12:24 +01:00
|
|
|
del app.domains[vm.name]
|
2012-08-06 14:57:30 +02:00
|
|
|
|
|
|
|
main()
|