aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorpapoteur-mga <yves.brungard_git@gadz.org>2014-05-14 19:58:24 +0200
committerpapoteur-mga <yves.brungard_git@gadz.org>2014-05-14 19:58:24 +0200
commit8804cb80c5e2c81a5c11fa91c89b4b928bfab63c (patch)
tree7de0ec309ee56fcf6fd52cd6cbd5a8374b041fd8 /lib
parent76857a74dd9f5d98d7c2019ec6c0afb1e922b020 (diff)
downloadisodumper-8804cb80c5e2c81a5c11fa91c89b4b928bfab63c.tar
isodumper-8804cb80c5e2c81a5c11fa91c89b4b928bfab63c.tar.gz
isodumper-8804cb80c5e2c81a5c11fa91c89b4b928bfab63c.tar.bz2
isodumper-8804cb80c5e2c81a5c11fa91c89b4b928bfab63c.tar.xz
isodumper-8804cb80c5e2c81a5c11fa91c89b4b928bfab63c.zip
Added a default name for the backup
Diffstat (limited to 'lib')
-rwxr-xr-xlib/isodumper.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index e259b58..8757a36 100755
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -21,7 +21,7 @@
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
-# Requires python-parted
+# Requires python-parted
import gtk
import gtk.glade
@@ -73,7 +73,7 @@ class IsoDumper:
# get glade tree
self.gladefile = "/usr/share/isodumper/isodumper.glade"
-# self.gladefile = "/documents/isodumper-dev/share/isodumper/isodumper.glade"
+ #self.gladefile = "/documents/isodumper-dev/share/isodumper/isodumper.glade"
self.wTree = gtk.glade.XML(self.gladefile)
# get globally needed widgets
@@ -143,6 +143,7 @@ class IsoDumper:
# convert in Mbytes
sizeM=str(int(size)/(1024*1024))
self.devicelist.append_text(name+' ('+path.lstrip()+') '+sizeM+_('Mb'))
+ self.device_name=name.rstrip().replace(' ', '')
dialog.destroy()
@@ -153,6 +154,7 @@ class IsoDumper:
self.wTree.get_widget("filechooserbutton").set_sensitive(True)
def backup_sel(self,widget):
+ self.backup_bname.set_current_name(self.device_name+".iso")
self.choose.show_all()
def backup_choosed(self, widget):
@@ -205,7 +207,7 @@ class IsoDumper:
self.devicelist.set_sensitive(True)
self.write_logfile()
self.wTree.get_widget("emergency_dialog").hide()
-
+
def raw_format(self, usb_path, fstype, label):
if os.geteuid() > 0:
launcher='pkexec'
@@ -257,7 +259,7 @@ class IsoDumper:
gobject.idle_add(task.next)
while gtk.events_pending():
gtk.main_iteration(True)
-
+
def do_write(self, widget):
write_button = self.wTree.get_widget("write_button")
write_button.set_sensitive(False)