ShareXin
Requirements
python3
Twitter
PyQt5
gnome-screenshot (on Linux)
feh (for Selection)
Features
- Uploads to Twitter
- Notification via libnotify
- Works with Wayland (On Gnome only) and X11 (On everything since the 90s)
- Compatible with Pyinstaller
Installation
git clone https://github.com/ShareXin/ShareXin- Add your Twitter App details into
config.ini - Place
config.inito~/.config/ShareXin/ - Attach the scripts to a keyboard shortcut
- Done!
Changelog
[0.7.5] - 2017-07-10
Added
- Automatic image folder creation
[0.7.4] - 2017-07-10
Added
- Better notification
- Selection pauses the screen by taking a screenshot of it and displaying it
[0.7.3] - 2016-10-08
Added
- Better configuration, similar to ShareJin's config
- Requirements.txt
[0.6.4] - 2016-09-15
Added
- Fixed syntax in scripts
- Removed useless if/else since Gnome-Screenshot doesn't give exit codes
[0.5.7] - 2016-06-22
Added
- Changelog
- Proper configuration file
- Fixed README
- Notification closes after 2 seconds
- Small modification on exiting for compatibility with Pyinstaller
Pyinstaller
Pyinstaller allows you to turn Python scripts into executables that can be run even without Python installed.
You can even turn them into Windows executables and macOS apps.
Steps for using Pyinstaller
pip3 install pyinstalleras sudo/rootpyinstaller (optional -F flag for one file instead of a folder) [file.py]- Done.
Cython
Pyinstaller currently doesn't work with Python3.6, so we must resort to using Cython, which creates a C source file that gcc compiles. Not sure if this works with macOS, but it definitely doesn't work on Windows, unless you can get gcc working.
Steps for using Cython
pip3 install cythonas sudo/rootcp Your_Python.py Your_Python.pyxcython Your_Python.pyx --embedgcc -Os -I /usr/include/python3.6m -o Your_Python Your_Python.c -lpython3.6m -lpthread -lm -lutil -ldl- Done?

