Latest LQ Deal: Latest LQ Deals
Go Back > Blogs > linux-related notes
User Name


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Rate this Entry

Adding a "copy image to clipboard" editor (not really) to geeqie

Posted 09-07-2015 at 01:22 AM by the dsc
Updated 11-17-2016 at 03:46 PM by the dsc (UPDATE!)

Edit: I've just found a method that seems much simpler and more lightweight

The copy to clipboard editor can be just xclip! (Therefore one of my first statements in the first version of this post is probably false, and possibly was wrong even then).

xclip -selection c -t image/jpg < "%f"
It doesn't matter that the source isn't a jpeg, you can even replace it for png, it's probably an on-the-fly reencoding or something, I'm not sure.

Got it from:

Thanks to "trollie"!

The previous solution remains below as an archive, just in case it ceases to work.


First you need some script or command-line application that does that to begin with. Apparently things like xsel and xclip used to be able to do that, but that's no longer the case, if it ever was.

But some people have come up with scripts that do that. I've copied one from somewhere that looks somewhat like those found here:

But there's a problem when you add this script directly as an "editor". As it keeps running, any other change you try to do to the image file from geeqie will be prevented with the warning that the image is currently in use by the "editor"/clipboard script.

That can be circumvented with a second script, if it can be called so, to be the "editor":

/path/to/the/previous/script/aforementionedscript.pyprobably "$*" &
exit 0
Posted in Uncategorized
Views 1975 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 05:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration