LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs > linux-related notes
User Name
Password

Notices


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 02:22 AM by the dsc
Updated 11-17-2016 at 04: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).

Code:
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:

https://bbs.archlinux.org/viewtopic....50758#p1550758

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:

http://unix.stackexchange.com/questi...e-to-clipboard

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":

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

Comments

 

  



All times are GMT -5. The time now is 03:04 AM.

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