2012-08-06 14:57:30 +02:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
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:
|
|
|
|
del app.domains[vm]
|
2012-08-06 14:57:30 +02:00
|
|
|
|
|
|
|
main()
|