In Command showing different behaviour when running from terminal and when Using as Shortcut, the user is on Kubuntu 18.04 and can
Open konsole and successfully run
followed by
A script based on the above also works when run from konsole:
But when the user assigns a custom keyboard shortcut, only the spectacle part seems to work.
I can verify that on my system as well. Any clues why? Putting a sleep, however long, between the two steps doesn't change anything as far as the custom keyboard shortcut route goes.
Open konsole and successfully run
Code:
spectacle -r -b -n -o /home/UserName/Documents/Translate/input.jpg
Code:
gocr -i /home/UserName/Documents/Translate/input.jpg | xsel -b
Code:
#!/bin/bash # Dependencies: gocr xsel # Take Screenshot and Save it to a File spectacle -r -b -n -o /home/UserName/Documents/Translate/input.jpg # Extract text from the saved file gocr -i /home/UserName/Documents/Translate/input.jpg | xsel -b exit
I can verify that on my system as well. Any clues why? Putting a sleep, however long, between the two steps doesn't change anything as far as the custom keyboard shortcut route goes.
Comment