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

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.

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

Re: My frontend to Gpaste.

#21 Post by frank38 »

I'll use a different approach: the notebook.
One tab for each image.

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

Re: My frontend to Gpaste.

#22 Post by frank38 »

This is the last version of my program:

Image

Now it uses the notebook:
in the first tab are listed the piece of text copied from the clipboard; then the images.
At the moment I have no issues.
As you can see, in the bottom are three buttons:
- the first is to copy the image to the clipboard
- the second is to save the image in your home folder
- the third is to delete the image from the history.

I've also added a button for a larger preview of the text elements.

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

Re: My frontend to Gpaste.

#23 Post by frank38 »

I've uploaded the last version of the program:

http://www.mediafire.com/file/f4pw6649z ... d-v0.1.zip
md5sum db630563e66fcde9172fe066bc2e7fc6

The issue is still present, but it happens randomly when I play with the program too much, so I've disabled the copy to clipboard function, the images can only be saved to disk. The code is still in the script, and I'm using it, just uncomment the related lines if you want to use that funcionality.

The icon of the applet changes if the daemon is disabled.

I'd like to know what do you think.

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

Re: My frontend to Gpaste.

#24 Post by frank38 »

I've made a little change: when a very large image is copied, the clipboard is reset after 30 seconds. I want a very low impact on the cpu from my program (in fact, the cpu time is always very very low).
I'm testing it, I'll upload the new version in two days.

Innovate
Posts: 188
Joined: 2015-12-27 01:28

Re: My frontend to Gpaste.

#25 Post by Innovate »

Look bits of better, In fact, I was vexed that you're making Gnome3 border.
I want an app that have regular border. It's look out of place when use with other DE than Gnome3.
It's unable to change theming gnome3 app border on other DE.

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

Re: My frontend to Gpaste.

#26 Post by frank38 »

Innovate wrote:Look bits of better, In fact, I was vexed that you're making Gnome3 border.
I want an app that have regular border. It's look out of place when use with other DE than Gnome3.
It's unable to change theming gnome3 app border on other DE.
My program do not use any theming, the aspect depends only on the theme and window manager you are using. The very early version had the headbar, not the last.

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

Re: My frontend to Gpaste.

#27 Post by frank38 »

The new version:
http://www.mediafire.com/file/c2o5zjlt8 ... d-v0.2.zip
md5: 48d544911d20d5a504dd685c4caddc9b

The image is discharged from the clipboard after 15 seconds, because with very large image the daemon (must do its work) take some more cpu time, I don't like it.
If you want the copy to clipboard functionality also for images, comment out the related lines of code.

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

Re: My frontend to Gpaste.

#28 Post by frank38 »

I've made some changes to the program: the daemon is disappeard, a simpler solution has been implemented; the countdown added with the previous version exists no more. The button for copying the images to the clipboard is now enabled by default.

The link:
http://www.mediafire.com/file/i4wqjlaw9 ... d-v0.3.zip
md5sum: 3d4be11cef0d8b549c65aebf53e457d7

I'd like to know some opinions.

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

Re: My frontend to Gpaste.

#29 Post by acewiza »

Likin' it, so far... :)

Then the next day it was gone from the tray. Re-launched and later disappeared, twice more now. Does not stay resident for some reason. :?

somebody@somewhere:~$ ps -ef |grep py
somebody 2347 1 0 Dec08 ? 00:00:01 python3.5 /home/somebody/.gpaste/Gpasteboard.py
somebody 24561 1 0 07:27 ? 00:00:00 python3.5 /home/somebody/.gpaste/Gpasteboard.py
somebody 28156 17396 0 07:51 pts/0 00:00:00 grep py

...but only 2 unresponsive grey squares in the tray...
Nobody would ever ask questions If everyone possessed encyclopedic knowledge of the man pages.

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

Re: My frontend to Gpaste.

#30 Post by frank38 »

acewiza wrote:Likin' it, so far... :)

Then the next day it was gone from the tray. Re-launched and later disappeared, twice more now. Does not stay resident for some reason. :?

somebody@somewhere:~$ ps -ef |grep py
somebody 2347 1 0 Dec08 ? 00:00:01 python3.5 /home/somebody/.gpaste/Gpasteboard.py
somebody 24561 1 0 07:27 ? 00:00:00 python3.5 /home/somebody/.gpaste/Gpasteboard.py
somebody 28156 17396 0 07:51 pts/0 00:00:00 grep py

...but only 2 unresponsive grey squares in the tray...
Sorry, I have not had any issues so far.
The program is launched automatically every time I log in.

The final release will be identical to the version 0.3, no more changes will be made.

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

Re: My frontend to Gpaste.

#31 Post by debiman »

frank38 wrote:Sorry, I have not had any issues so far.
The program is launched automatically every time I log in.

The final release will be identical to the version 0.3, no more changes will be made.
now that's a very mature way of handling bugs i must say.
"they do not exist"
:mrgreen:

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

Re: My frontend to Gpaste.

#32 Post by acewiza »

I was hoping for at least maybe a request for more info.
Nobody would ever ask questions If everyone possessed encyclopedic knowledge of the man pages.

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

Re: My frontend to Gpaste.

#33 Post by frank38 »

debiman wrote:
frank38 wrote:Sorry, I have not had any issues so far.
The program is launched automatically every time I log in.

The final release will be identical to the version 0.3, no more changes will be made.
now that's a very mature way of handling bugs i must say.
"they do not exist"
:mrgreen:
The applet cannot check if it is already launched, so you can have more than one applet in the systray.
I don't have experienced any issues so far, so what should I search?

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

Re: My frontend to Gpaste.

#34 Post by frank38 »

I've uploaded the version 0.4 of my program:

http://www.mediafire.com/file/9rl6c4hs4 ... d-V0.4.zip
md5sum: 005b5b73c1471cc4f78df0afbed77e8b

Changelog:
- the main window doesn't close anymore after clicking on the delete button in the text tab;
- the quit button is now at the bottom.

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

Re: My frontend to Gpaste.

#35 Post by frank38 »

Final version:
http://www.mediafire.com/file/lhjr99o1h ... d-V1.0.zip
md5sum: a9f1d1e259a9a1e1ce606b1a4bf3d960

Changelog:
- preview of 501 char;
- added "[...]" at the end of the preview if the text is longer.

Post Reply