From: Nikos Skalkotos Date: Fri, 19 Oct 2012 10:38:45 +0000 (+0300) Subject: Add the media source in the background title X-Git-Tag: v0.1~8 X-Git-Url: https://code.grnet.gr/git/snf-image-creator/commitdiff_plain/b044e29ed2c9da9bc503b64a05b46683e146e281?hp=058f5b86fc25bb6b63bc10285a95d6f26fdd1831;ds=sidebyside Add the media source in the background title --- diff --git a/image_creator/dialog_util.py b/image_creator/dialog_util.py index 00f8683..384019a 100644 --- a/image_creator/dialog_util.py +++ b/image_creator/dialog_util.py @@ -44,6 +44,7 @@ WIDTH = 70 def update_background_title(session): d = session['dialog'] dev = session['device'] + disk = session['disk'] MB = 2 ** 20 @@ -51,8 +52,9 @@ def update_background_title(session): shrinked = 'shrinked' in session and session['shrinked'] postfix = " (shrinked)" if shrinked else '' - title = "OS: %s, Distro: %s, Size: %dMB%s" % \ - (dev.ostype, dev.distro, size, postfix) + title = "OS: %s, Distro: %s, Size: %dMB%s, Source: %s" % \ + (dev.ostype, dev.distro, size, postfix, + os.path.abspath(disk.source)) d.setBackgroundTitle(title)