Use your favourite screenshot tool and let Drosh script upload it to Dropbox and create a shared link
- inotify
- dropbox
- Something to daemonize the script
Create a Dropbox App in https://www.dropbox.com/developers/apps with full access then in the OAuth2 section create your private access token and configure the script.
pip install -r requirements.txt
export DROSH_DROPBOX_TOKEN='<your-dropbox-token>'
export DROSH_DROPBOX_FOLDER='<your-dropbox-screehshots-folder>'
export DROSH_SCREENSHOT_FOLDER='<your-system-screenshot-folder>'
(env) python drosh.py
DROSH_DROPBOX_TOKEN - OAuth2 token generated in the Dropbox App
DROSH_DROPBOX_FOLDER - Web site Dropbox folder
DROSH_SCREENSHOT_FOLDER - Full path to your Dropbox folder where you save screenshots
USER - Your username
HOME - Your home path
LOGNAME - Your username
DISPLAY - Your X Server screen, ":0.0" by default. https://askubuntu.com/questions/432255/what-is-display-environment-variable
python drosh.py --upload screenshot.png
Share this link!
https://www.dropbox.com/s/8uzja12dawdadfpdci91fi/screenshot.png?dl=0
[program:drosh]
command=<full-path-virtualenv>/bin/python <path-to-drosh>/drosh.py --watch
user=<your-username>
autostart=true
autorestart=true
stderr_logfile=/var/log/drosh-stderr.log
stdout_logfile=/var/log/drosh-std.log
environment=DROSH_DROPBOX_TOKEN='<your-dropbox-token>',DROSH_DROPBOX_FOLDER='<your-dropbox-screehshots-folder>',DROSH_SCREENSHOT_FOLDER='<your-system-screenshot-folder>',USER=<your-username>,HOME=<your-home-folder>,LOGNAME=<your-username>,DISPLAY=":0.0"
There is some problem with the env var DISPLAY
or check the permision of your supervisorfile. You can see the discussion on this thread #3
Maybe you need some extra requirements, Pyperclip uses gtk or PyQt4 to access the paper clim. https://github.com/asweigart/pyperclip/blob/master/docs/introduction.rst