Codebase list xapp / f40a537
Pastebin: Replace gist with termbin gist is no more :( Clement Lefebvre 5 years ago
2 changed file(s) with 6 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
7777 Architecture: all
7878 Multi-Arch: foreign
7979 Depends:
80 gist,
8180 inxi,
8281 python3,
8382 python3-gi,
2121 content = str_args
2222
2323 if content != "":
24 for paster in ['/usr/bin/gist-paste', '/usr/bin/fpaste']:
25 if os.path.exists(paster):
26 p = subprocess.Popen([paster], stdin=subprocess.PIPE)
27 p.communicate(content.encode("UTF-8"))
24 if os.path.exists('/usr/bin/fpaste'):
25 p = subprocess.Popen(['/usr/bin/fpaste'], stdin=subprocess.PIPE)
26 p.communicate(content.encode("UTF-8"))
27 else:
28 p = subprocess.Popen(['nc', 'termbin.com', '9999'], stdin=subprocess.PIPE)
29 p.communicate(content.encode("UTF-8"))