Comments (5)
This would be useful for arbitrary uploading, a use case I need.
from gnome-shell-screenshot.
This would at least provide a solution for #64
from gnome-shell-screenshot.
Almost 4 years later :) b722ff6
from gnome-shell-screenshot.
from gnome-shell-screenshot.
I am using it to upload the screenshot to telegram
curl -F photo=@{f} https://api.telegram.org/bot<MY_BOT_TOKEN>/sendPhoto?chat_id=<MY_CHAT_ID>
with success.
However since qrcode have become more popular and you often see them around I had an idea.
I want to use something like
zenity --info --text `zbarimg -q {f}
zbarimg is a tool to decode qrcodes, while zenity is a basic gui to display the message (from zbarimg)
The problem is that I am not able to chain the two commands together.
I want to both upload to telegram (I can do that as of now) and show the decoded qrcode string.
(if there is no qrcode in the screenshot zbarimg returns nothing)
I said ok, I can't do this by chaining the two commands with a ';' in the gnome screenshot "commands" settings' tab, so let's make a sh script.
FILENAME=$1
curl -F photo=@$FILENAME https://api.telegram.org/bot<TOKEN>/sendPhoto?chat_id=<chat_id>
zenity --info --text `zbarimg -q $FILENAME`
and I am calling with
sh /home/ub20/screenshot.sh {f}
however this does not work, I get error exitcode=65280.
The path I save the screenshot to has no spaces in it, I mean folders and subfolders of screenshot destination path has no spaces
Any idea?
from gnome-shell-screenshot.
Related Issues (20)
- Screenshots with multiple monitors only combine vertical resolutions
- When I click on any option, nothing happens [ Fedora 34 ] HOT 5
- Gnome 41 Support Needed! HOT 6
- Error while trying to take a screenshot (area, window and desktop) HOT 3
- Shift + "any key" is not working
- Month in full letters
- Cancelling area selection shows an error in notifications HOT 3
- Auto-copy to Clipboard copies imgur link instead of Image Data when set to Image data HOT 4
- Delay seconds must be integer HOT 1
- Gnome 42 Support needed HOT 3
- Error after upgrading from PopOS 21.10 to 22.04 LTS (Failed to execute child process) HOT 5
- Ubuntu 22.04 LTS - gnome shell screenshot tool extension not working HOT 4
- Error: exitCode=256
- Gnome 43 support HOT 5
- Gnome 44 support HOT 6
- GNOME 45 Support HOT 15
- Configured keybinding "Alt+$" for area-selection does nothing
- Cancel with right click
- Imgur upload fails with 'TypeError: upload is undefined' HOT 2
- SFTP and FTP Upload Support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gnome-shell-screenshot.