[virt-tools-list] [RFC PATCH 04/10] tui: Save URIs in	~/.virt-manager, not /etc
    Cole Robinson 
    crobinso at redhat.com
       
    Mon Apr 18 18:06:46 UTC 2011
    
    
  
Let's us run as nonroot.
Signed-off-by: Cole Robinson <crobinso at redhat.com>
---
 src/virtManagerTui/libvirtworker.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/virtManagerTui/libvirtworker.py b/src/virtManagerTui/libvirtworker.py
index 3e8b8e2..6c1484f 100644
--- a/src/virtManagerTui/libvirtworker.py
+++ b/src/virtManagerTui/libvirtworker.py
@@ -41,7 +41,9 @@ def get_default_url():
     return default_url
 
 class VirtManagerConfig:
-    def __init__(self, filename = "/etc/remote-libvirt.conf"):
+    def __init__(self, filename=None):
+        if filename is None:
+            filename = os.path.expanduser("~/.virt-manager/virt-manager-tui.conf")
         self.__filename = filename
 
     def get_connection_list(self):
-- 
1.7.4
    
    
More information about the virt-tools-list
mailing list