aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/fjclip.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/fjclip.py')
-rwxr-xr-xcontrib/fjclip.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/fjclip.py b/contrib/fjclip.py
index cd12cd289..b45959841 100755
--- a/contrib/fjclip.py
+++ b/contrib/fjclip.py
@@ -10,10 +10,10 @@ firemon --x11 to see available running x11 firejails. firejail names can be shor
10to least ambiguous. for example 'work-libreoffice' can be shortened to 'work' if no 10to least ambiguous. for example 'work-libreoffice' can be shortened to 'work' if no
11other firejails name starts with 'work'. 11other firejails name starts with 'work'.
12warning: browsers are dangerous. clipboards from browsers are dangerous. see 12warning: browsers are dangerous. clipboards from browsers are dangerous. see
13https://github.com/dxa4481/Pastejacking 13https://github.com/dxa4481/Pastejacking
14fjclip.py strips whitespace from both 14fjclip.py strips whitespace from both
15ends, but does nothing else to protect you. use a simple gui text editor like 15ends, but does nothing else to protect you. use a simple gui text editor like
16gedit if you want to see what your pasting.""" 16gedit if you want to see what your pasting."""
17 17
18if len(sys.argv) != 3 or sys.argv == '-h' or sys.argv == '--help': 18if len(sys.argv) != 3 or sys.argv == '-h' or sys.argv == '--help':
19 print(usage) 19 print(usage)
@@ -32,4 +32,4 @@ if sys.argv[2] == '-':
32else: 32else:
33 display = fjdisplay.getdisplay(sys.argv[2]) 33 display = fjdisplay.getdisplay(sys.argv[2])
34 clipout = subprocess.Popen(['xsel','-b','-i','--display',display],stdin=subprocess.PIPE) 34 clipout = subprocess.Popen(['xsel','-b','-i','--display',display],stdin=subprocess.PIPE)
35 clipout.communicate(clipin) \ No newline at end of file 35 clipout.communicate(clipin)