Delete VNC socket file when deleting domain

This commit is contained in:
2023-12-11 15:09:18 +01:00
parent ce98abb757
commit cb49f1cb40
3 changed files with 15 additions and 2 deletions

View File

@ -172,6 +172,11 @@ impl AppConfig {
self.storage_path().join("vnc")
}
/// Get VM vnc sockets path for domain
pub fn vnc_socket_for_domain(&self, name: &str) -> PathBuf {
self.vnc_sockets_path().join(format!("vnc-{}", name))
}
/// Get VM vnc sockets directory
pub fn disks_storage_path(&self) -> PathBuf {
self.storage_path().join("disks")