Page 1 of 3

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.

Re: My frontend to Gpaste.

Posted: 2017-11-25 09:40
by frank38
I'll use a different approach: the notebook.
One tab for each image.

Re: My frontend to Gpaste.

Posted: 2017-11-27 12:53
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.

Re: My frontend to Gpaste.

Posted: 2017-11-30 08:19
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.

Re: My frontend to Gpaste.

Posted: 2017-12-03 18:18
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.

Re: My frontend to Gpaste.

Posted: 2017-12-04 23:55
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.

Re: My frontend to Gpaste.

Posted: 2017-12-05 08:10
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.

Re: My frontend to Gpaste.

Posted: 2017-12-05 15:55
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.

Re: My frontend to Gpaste.

Posted: 2017-12-06 13:27
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.

Re: My frontend to Gpaste.

Posted: 2017-12-08 15:41
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...

Re: My frontend to Gpaste.

Posted: 2017-12-09 15:02
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.

Re: My frontend to Gpaste.

Posted: 2017-12-10 07:52
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:

Re: My frontend to Gpaste.

Posted: 2017-12-10 14:27
by acewiza
I was hoping for at least maybe a request for more info.

Re: My frontend to Gpaste.

Posted: 2017-12-10 16:46
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?

Re: My frontend to Gpaste.

Posted: 2017-12-15 18:25
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.

Re: My frontend to Gpaste.

Posted: 2017-12-24 15:52
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.