diff -ruN a/axis.py b/axis.py --- a/axis.py 2019-02-18 15:06:28.000000000 +0200 +++ b/axis.py 2019-02-18 22:35:49.576328111 +0200 @@ -1252,6 +1252,20 @@ progress.done() except UnboundLocalError: pass + try: + if canon.img_comment : + e = string.split('xdg-open') + e.append(canon.img_file) + e.append("&") + root_window.tk.call("exec", *e) + if canon.descr_comment : + e = string.split(editor) + e.append(canon.descr_file) + e.append("&") + print e , 'e' + root_window.tk.call("exec", *e) + except : + print "error_comment" o.tkRedraw() root_window.tk.call("set_mode_from_tab") diff -ruN a/glcanon.py b/glcanon.py --- a/glcanon.py 2019-02-18 15:06:28.000000000 +0200 +++ b/glcanon.py 2019-02-18 22:35:14.008151739 +0200 @@ -126,8 +126,23 @@ self.notify = 0 self.notify_message = "" self.highlight_line = None - + self.img_comment = 0 + self.descr_comment = 0 + self.descr_file = "" + self.img_file = "" + def comment(self, arg): + + if arg.startswith("IMG,"): + parts = arg.split(",") + self.img_file = parts[1] + self.img_comment = 1 + + if arg.startswith("DESCR,"): + parts = arg.split(",") + self.descr_file = parts[1] + self.descr_comment = 1 + if arg.startswith("AXIS,"): parts = arg.split(",") command = parts[1]