Comments (12)
First of all, this isn't a "normal" way to paste binary images, you should use a target atom instead. If you use a target atom, this problem won't happen (clipmenu doesn't look for ones with "unusual" target atoms).
Detecting binary is not a trivial matter in bash (or, to be honest, in any language). One possibility would be to run through file -i
and look for text/*
and the absence of charset=binary
, but I don't know how many false positives/negatives that may yield, and it incurs questions that I'd rather avoid (is -i
portable? is the output of -i
portable? etc).
Is there a reason you can't adhere to the standard and use a target atom?
from clipmenu.
Surely I can use it, thanks for advice. But looks like it will be better to protect application from broken files which block that at all.
from clipmenu.
Can you show me a screenshot of the "broken" output? It looks not that bad to me when I try it.
from clipmenu.
It just empty.
from clipmenu.
clipmenu: line 35: selections[$first_line]: bad array subscript
from clipmenu.
That error message shouldn't stop you from using clipmenu, right?
from clipmenu.
Bug in next: when some of files broken (binary), I got this error and no items in list at all.
from clipmenu.
Hm. That's unusual, I don't repro that.
Do you have a sample file that causes that?
from clipmenu.
If I delete broken file by hand, it work again.
from clipmenu.
Whoops.
from clipmenu.
This one I use to copy in xclip -i -selection clipboard
from clipmenu.
xclip support dropped. Please reopen if this occurs with xsel.
from clipmenu.
Related Issues (20)
- Can't get clipmenud to start on boot in Qtile HOT 2
- Change clipmenud to only copy things that have been ctrl +c'ed instead of just being selected HOT 2
- [Feature request] Config/Overrides file for clipmenu HOT 2
- Status always showing 'enabled' HOT 2
- Pasting large images HOT 8
- Add option to disable copy on select HOT 2
- Unable to copy images to clipboard with Spectacle HOT 4
- Support customizing launcher args HOT 1
- No longer working on select (rofi) HOT 7
- Clean shutdown HOT 3
- Use clipnotify loop mode HOT 1
- Add image support HOT 3
- Option to not store passwords HOT 2
- Put new strings in clipboard from clipmenu HOT 2
- Save Image to a File - no menu entry nor toolbar button HOT 1
- keepassxc vs. clipmenu HOT 6
- Cannot get `$CM_IGNORE_WINDOW` to work HOT 1
- Add man pages HOT 1
- Why might one want to enable CM_OWN_CLIPBOARD=1? HOT 2
- I can't control it via environmental variables HOT 3
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 clipmenu.