Page 1 of 2

My frontend to Gpaste.

PostPosted: 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.

PostPosted: 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.

PostPosted: 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.

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

Re: My frontend to Gpaste.

PostPosted: 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.

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

Re: My frontend to Gpaste.

PostPosted: 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.

PostPosted: 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.

PostPosted: 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.

PostPosted: 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.

PostPosted: 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.

PostPosted: 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.

PostPosted: 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.

PostPosted: 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.

PostPosted: 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.