e209e448f2
Cleanup DispVMs after non-clean shutdown Fixes QubesOS/qubes-issues#3037
13 lines
239 B
Python
Executable File
13 lines
239 B
Python
Executable File
#!/usr/bin/python
|
|
|
|
from qubesadmin import Qubes
|
|
|
|
def main():
|
|
app = Qubes()
|
|
for vm in app.domains:
|
|
if vm.klass == 'DispVM' and not vm.is_running():
|
|
if vm.auto_cleanup:
|
|
del app.domains[vm]
|
|
|
|
main()
|