From 40e0814a12698ef910c9146d542667cb10d88ede Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 1 Dec 2009 22:57:54 +0000 Subject: [PATCH] Unquote filenames dragged onto the terminal --- terminatorlib/terminatorterm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminatorlib/terminatorterm.py b/terminatorlib/terminatorterm.py index f11d29a3..d6d014a2 100755 --- a/terminatorlib/terminatorterm.py +++ b/terminatorlib/terminatorterm.py @@ -19,7 +19,7 @@ import pygtk pygtk.require ("2.0") import gobject, gtk, pango -import os, signal, sys, subprocess, pwd, re +import os, signal, sys, subprocess, pwd, re, urllib2 #import version details from terminatorlib.version import * @@ -544,7 +544,7 @@ text/plain #print "%s %s" % (selection_data.type, selection_data.target) txt = selection_data.data.strip() if txt[0:7] == "file://": - txt = "'%s'" % txt[7:] + txt = "'%s'" % urllib2.unquote(txt[7:]) for term in self.get_target_terms(): term._vte.feed_child(txt) return