Page 1 of 3

Gpasteboard: clipboard program for text and images.

Posted: 2017-11-06 14:53
by frank38
I need clipboard, and I want it almost complete.
After some search, I found Gpaste for my desktop.
But a feature is missing, the preview of copied images.
So I decided to write by myself a simple frontend (about 190 lines of code).
Here is the screenshot:

Image
(The link: http://i64.tinypic.com/34zng9e.png)

Ok, the image is too big :) please open it in another window of your browser.

I can empty the history, delete each item and of course choose any item.

What do you think?

Re: My frontend to Gpaste.

Posted: 2017-11-06 15:50
by GarryRicketson
Ok, the image is too big :) please open it in another window of your browser.
NO, you should fix it and use a thumb nail. Or just use plain text and a link to
the image:
Attachments, How to post a screen shot and use code boxes
And :
Please learn to thumbnail images
Thank you

Re: My frontend to Gpaste.

Posted: 2017-11-06 16:20
by frank38
The image I uploaded was the right size, but the hosting site enlarged it.
----------
Uploaded another image at 640x480, nothing changed.

Re: My frontend to Gpaste.

Posted: 2017-11-06 18:52
by debiman
um.
where's the code?

Re: My frontend to Gpaste.

Posted: 2017-11-07 14:50
by frank38
debiman wrote:um.
where's the code?
It's here, in my PC.

Re: My frontend to Gpaste.

Posted: 2017-11-07 16:48
by pawRoot
From what i remember clipit does the same thing :P

Re: My frontend to Gpaste.

Posted: 2017-11-07 17:25
by debiman
frank38 wrote:
debiman wrote:um.
where's the code?
It's here, in my PC.
look, no offence, it's your code and you can do whatever you want, but why start a thread about it when you don't share it?

Re: My frontend to Gpaste.

Posted: 2017-11-07 22:45
by frank38
debiman wrote:look, no offence, it's your code and you can do whatever you want, but why start a thread about it when you don't share it?
I have yet to add a couple of line of code.

Re: My frontend to Gpaste.

Posted: 2017-11-09 12:27
by frank38
pawRoot wrote:From what i remember clipit does the same thing :P
Can it handle images? I don't think so.

Re: My frontend to Gpaste.

Posted: 2017-11-09 16:17
by frank38
Well, I think the program is finished.
I join a new updated screenshot (please click on the link below):

Image

(Here is the same at bigger size: http://i65.tinypic.com/zjtmi9.jpg)
The first picture has been resized: it's a 1920x1080 image.
In the second element of the history:
- [...] that means the element is longer
- and before the newline character
Then:
- the vertical scrollbar
- the program closes after clicking on one item
- a dialog to confirm to empty the history

Re: My frontend to Gpaste.

Posted: 2017-11-11 14:56
by frank38
There is a bug in the Gpaste daemon: sometime an image is replaced by another one.
I've decided to write everything adding new features, such as persistent elementes. At the moment the program is 25% complete.

Re: My frontend to Gpaste.

Posted: 2017-11-11 16:47
by acewiza
Look's promising. I've used several clipboard applets including clipit, over the years. It's an indispensable function, to me. Some are better than others, but have yet to find one that does all things I expect, satisfactorily.

Re: My frontend to Gpaste.

Posted: 2017-11-11 18:37
by debiman
^ yes, let's be encouraging.
maybe op will share the code one day, finally giving meaning to this monologue...

+1!

keep on coding! you can do it!

Re: My frontend to Gpaste.

Posted: 2017-11-12 07:29
by frank38
Attached is the early python program:

http://www.mediafire.com/file/ix6dp9an8 ... board5.zip

md5: 83618807cc3c1039a5ff6ca2fe54b8e9

It's the same program I've been using.

Re: My frontend to Gpaste.

Posted: 2017-11-14 15:24
by frank38
At the moment the daemon is finished: it stores text and images.
Follow a long testing...
I think I'll integrate it into the applet (almost done), just not to have many processes.

Re: My frontend to Gpaste.

Posted: 2017-11-16 10:45
by frank38
The program is finished.
The project consists of two program, the applet/daemon and the frontend.
The applet launches the daemon, and can stop/restart it.
Actually the frontend looks exactly like the previous one.
After cleaning up the code, I'll upload the project.

Re: My frontend to Gpaste.

Posted: 2017-11-16 16:18
by frank38
The program has been uploaded here:

http://www.mediafire.com/file/ao9byw8pa ... board6.zip
md5: ff7af71bcc6c5c9d34dfb9af8f229f0e

No preview because the frontend is still the same.

The program use the gtk clipboard, so I don't know if it is usable with other widgets.

In the next release I will add:
- persistent element
- a button to save each image
- the possibility to limit the element in the history (at the moment no limit)
- preview for each text element
- some dialogs

Suggestions?

Re: My frontend to Gpaste.

Posted: 2017-11-17 05:12
by debiman
frank38 wrote:Suggestions?
> The program use the gtk clipboard

please add support for primary selection as well as clipboard.
all clipboards, basically, just like e.g. clipit offers.
pasting from/to my urxvt terminal is absolutely essesntial for me.

also, why not use git and some git web service (don't have to be github)?

Re: My frontend to Gpaste.

Posted: 2017-11-17 16:34
by frank38
debiman wrote: > The program use the gtk clipboard

please add support for primary selection as well as clipboard.
all clipboards, basically, just like e.g. clipit offers.
pasting from/to my urxvt terminal is absolutely essesntial for me.

also, why not use git and some git web service (don't have to be github)?
The primary clipboard? In my case the history will fill of everything I highlight.

At the moment I've been developing the program (in fact, I've been rewriting some code of the frontend, and already added some lines of code to the daemon), but a git web service is a good idea.

Re: My frontend to Gpaste.

Posted: 2017-11-24 12:13
by frank38
A lot of difficults occur during the developpement of my project when I decided to manage the images like the text. I got the same issue as Gpaste. I've decided to leave out the images. I really tryed everything, but the result do not change.