Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Gpasteboard: clipboard program for text and images.

Off-Topic discussions about science, technology, and non Debian specific topics.
Message
Author
frank38
Posts: 114
Joined: 2017-10-30 12:04

Gpasteboard: clipboard program for text and images.

#1 Post 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?
Last edited by frank38 on 2018-06-22 06:19, edited 4 times in total.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: My frontend to Gpaste.

#2 Post 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

frank38
Posts: 114
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

#3 Post by frank38 »

The image I uploaded was the right size, but the hosting site enlarged it.
----------
Uploaded another image at 640x480, nothing changed.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: My frontend to Gpaste.

#4 Post by debiman »

um.
where's the code?

frank38
Posts: 114
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

#5 Post by frank38 »

debiman wrote:um.
where's the code?
It's here, in my PC.

User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: My frontend to Gpaste.

#6 Post by pawRoot »

From what i remember clipit does the same thing :P

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: My frontend to Gpaste.

#7 Post 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?

frank38
Posts: 114
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

#8 Post 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.

frank38
Posts: 114
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

#9 Post by frank38 »

pawRoot wrote:From what i remember clipit does the same thing :P
Can it handle images? I don't think so.

frank38
Posts: 114
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

#10 Post 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

frank38
Posts: 114
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

#11 Post 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.
Last edited by frank38 on 2017-11-11 19:06, edited 2 times in total.

User avatar
acewiza
Posts: 357
Joined: 2013-05-28 12:38
Location: Out West

Re: My frontend to Gpaste.

#12 Post 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.
Nobody would ever ask questions If everyone possessed encyclopedic knowledge of the man pages.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: My frontend to Gpaste.

#13 Post 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!

frank38
Posts: 114
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

#14 Post 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.

frank38
Posts: 114
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

#15 Post 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.

frank38
Posts: 114
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

#16 Post 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.

frank38
Posts: 114
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

#17 Post 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?

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: My frontend to Gpaste.

#18 Post 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)?

frank38
Posts: 114
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

#19 Post 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.

frank38
Posts: 114
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

#20 Post 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.
Last edited by frank38 on 2017-11-25 09:41, edited 1 time in total.

Post Reply