Now stores the final path correctly

Now uses .devedeng to store the configuration, allowing to co-exist with classic devede
This commit is contained in:
Sergio Costas 2014-08-09 18:51:32 +02:00
parent acbc254bc8
commit 2f8a8dc1e4
2 changed files with 7 additions and 4 deletions

View file

@ -102,7 +102,7 @@ class configuration(GObject.GObject):
self.subt_outline_color = (0,0,0,1) self.subt_outline_color = (0,0,0,1)
self.subt_outline_thickness = 0.0 self.subt_outline_thickness = 0.0
config_path = os.path.join(os.environ.get("HOME"),".devede") config_path = os.path.join(os.environ.get("HOME"),".devedeng")
try: try:
config_data = open(config_path,"r") config_data = open(config_path,"r")
for linea in config_data: for linea in config_data:
@ -176,7 +176,7 @@ class configuration(GObject.GObject):
def save_config(self): def save_config(self):
config_path = os.path.join(os.environ.get("HOME"),".devede") config_path = os.path.join(os.environ.get("HOME"),".devedeng")
try: try:
config_data = open(config_path,"w") config_data = open(config_path,"w")
config_data.write("video_format:") config_data.write("video_format:")

View file

@ -47,10 +47,13 @@ class create_disk_window:
self.name = self.wname.get_text() self.name = self.wname.get_text()
self.path = os.path.join(self.wpath.get_current_folder(),self.name) self.path = os.path.join(self.wpath.get_current_folder(),self.name)
self.shutdown = wshutdown.get_active() self.shutdown = wshutdown.get_active()
if (retval == 1):
self.config.final_folder = self.wpath.get_current_folder()
self.config.save_config()
wcreate_window.destroy() wcreate_window.destroy()
if (retval == 1): if (retval == 1):
self.config.final_folder = self.path
self.config.save_config()
return True return True
else: else:
return False return False