ts = time.strftime("%Y-%m-%d-%H:%M:%S")
-profile = "default"
+if len(sys.argv) == 2:
+ profile = sys.argv[1]
+else:
+ profile = "default"
basedir = os.environ['HOME'] + "/.mozilla/firefox/"
histdir = os.environ['HOME'] + "/mozhistory";
if not os.path.exists(histdir):