My frontend to Gpaste.

If it doesn't relate to Debian, but you still want to share it, please do it here

My frontend to Gpaste.

Postby frank38 » 2017-11-06 14:53

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?
Last edited by frank38 on 2017-11-06 16:32, edited 2 times in total.
frank38
 
Posts: 18
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

Postby GarryRicketson » 2017-11-06 15:50

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
"What we expect you have already Done"

Before doing anything, read the Debian documentation:
Debian Documentation
How to ask the smart way
Debian Foro Español
======================
For the Birds
User avatar
GarryRicketson
 
Posts: 4356
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: My frontend to Gpaste.

Postby frank38 » 2017-11-06 16:20

The image I uploaded was the right size, but the hosting site enlarged it.
----------
Uploaded another image at 640x480, nothing changed.
frank38
 
Posts: 18
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

Postby debiman » 2017-11-06 18:52

um.
where's the code?
User avatar
debiman
 
Posts: 1528
Joined: 2013-03-12 07:18

Re: My frontend to Gpaste.

Postby frank38 » 2017-11-07 14:50

debiman wrote:um.
where's the code?

It's here, in my PC.
frank38
 
Posts: 18
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

Postby pawRoot » 2017-11-07 16:48

From what i remember clipit does the same thing :P
OS: Debian unstable sid
Kernel: x86_64 Linux 4.13.0-1-amd64
WM: Gnome3
CPU: Intel Core i5-4690K CPU @ 3.9GHz
MOBO: MSI Z97 Gaming 3
User avatar
pawRoot
 
Posts: 187
Joined: 2016-12-28 18:26
Location: Poland

Re: My frontend to Gpaste.

Postby debiman » 2017-11-07 17:25

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?
User avatar
debiman
 
Posts: 1528
Joined: 2013-03-12 07:18

Re: My frontend to Gpaste.

Postby frank38 » 2017-11-07 22:45

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.
frank38
 
Posts: 18
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

Postby frank38 » 2017-11-09 12:27

pawRoot wrote:From what i remember clipit does the same thing :P

Can it handle images? I don't think so.
frank38
 
Posts: 18
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

Postby frank38 » 2017-11-09 16:17

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
frank38
 
Posts: 18
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

Postby frank38 » 2017-11-11 14:56

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.
Last edited by frank38 on 2017-11-11 19:06, edited 2 times in total.
frank38
 
Posts: 18
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

Postby acewiza » 2017-11-11 16:47

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.
Nobody would ever ask questions If everyone possessed encyclopedic knowledge of the man pages.
User avatar
acewiza
 
Posts: 267
Joined: 2013-05-28 12:38
Location: Out West

Re: My frontend to Gpaste.

Postby debiman » 2017-11-11 18:37

^ 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!
User avatar
debiman
 
Posts: 1528
Joined: 2013-03-12 07:18

Re: My frontend to Gpaste.

Postby frank38 » 2017-11-12 07:29

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.
frank38
 
Posts: 18
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

Postby frank38 » 2017-11-14 15:24

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.
frank38
 
Posts: 18
Joined: 2017-10-30 12:04

Next

Return to Offtopic

Who is online

Users browsing this forum: 4D696B65 and 3 guests

fashionable