My frontend to Gpaste.

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

Re: My frontend to Gpaste.

Postby frank38 » 2017-11-16 10:45

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: 34
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

Postby frank38 » 2017-11-16 16:18

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

Re: My frontend to Gpaste.

Postby debiman » 2017-11-17 05:12

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

Re: My frontend to Gpaste.

Postby frank38 » 2017-11-17 16:34

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: 34
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

Postby frank38 » 2017-11-24 12:13

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: 34
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

Postby frank38 » 2017-11-25 09:40

I'll use a different approach: the notebook.
One tab for each image.
frank38
 
Posts: 34
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

Postby frank38 » 2017-11-27 12:53

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: 34
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

Postby frank38 » 2017-11-30 08:19

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: 34
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

Postby frank38 » 2017-12-03 18:18

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

Re: My frontend to Gpaste.

Postby Innovate » 2017-12-04 23:55

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.
User avatar
Innovate
 
Posts: 126
Joined: 2015-12-27 01:28
Location: /dev/urandom

Re: My frontend to Gpaste.

Postby frank38 » 2017-12-05 08:10

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: 34
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

Postby frank38 » 2017-12-05 15:55

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: 34
Joined: 2017-10-30 12:04

Re: My frontend to Gpaste.

Postby frank38 » 2017-12-06 13:27

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

Re: My frontend to Gpaste.

Postby acewiza » 2017-12-08 15:41

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.
User avatar
acewiza
 
Posts: 271
Joined: 2013-05-28 12:38
Location: Out West

Re: My frontend to Gpaste.

Postby frank38 » 2017-12-09 15:02

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

PreviousNext

Return to Offtopic

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable