+void mac_dupsession(void)
+{
+ Session *s1 = (Session *)GetWRefCon(FrontWindow());
+ Session *s2;
+
+ s2 = smalloc(sizeof(*s2));
+ memset(s2, 0, sizeof(*s2));
+ s2->cfg = s1->cfg;
+ s2->hasfile = s1->hasfile;
+ s2->savefile = s1->savefile;
+
+ mac_startsession(s2);
+}
+