[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [RFC PATCH 04/10] tui: Save URIs in ~/.virt-manager, not /etc



Let's us run as nonroot.

Signed-off-by: Cole Robinson <crobinso 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]