From ee6229ff729575b00bfaa98a46660882373cef23 Mon Sep 17 00:00:00 2001 From: kageru Date: Mon, 7 May 2018 10:51:29 +0200 Subject: [PATCH] fixed bug in clipboard mode --- pyshare.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyshare.py b/pyshare.py index fa60f6d..c996cb8 100755 --- a/pyshare.py +++ b/pyshare.py @@ -126,8 +126,7 @@ def notify_user(url:str, image=None) -> None: call(['notify-send', '-a', 'pyshare', url, '-t', '3000']) -def parse_text(): - text = pyperclip.paste() +def parse_text(text): if re.match(r'(https?|s?ftp)://', text): mirror_file(text) elif os.path.isfile(text):