Copy Fast - Right click option

Filemanagers, partitioning tools, etc.
Message
Author
User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

Copy Fast - Right click option

#1 Post by don570 »

I wanted a simple way to copy a file. Microsoft Windows has a right click
menu for copying a file to a USB stick.

So I made an equivalent right click for Puppy but put more features in it.

Locations can be easily added. Also right click on a folder and the
entire folder can be copied.

It has been gettext'd for foreign translators.

Note that in Puppy Linux, /mnt/home is where your frugal install is located.


Notes:
It works with Rox Filer or Thunar file manager.
Use a recent version of Gtkdialog
There is an incompatibility with pwidgets explained in next post.


Image

___________________________________________________

debian version is available here
Size 10k
copy-fast_2.7_all.deb
https://drive.google.com/open?id=1g6s9h ... IpuCbUmwmD
___________________________________________



Note that a few distros (tazpup) like to add partitions to /media folder
rather than /mnt
I never bothered to implement this.
_____________
Attachments
copy-fast-2.7.pet
Spanish French German Dutch Arabic locales included inside
(12.6 KiB) Downloaded 1182 times
Last edited by don570 on Tue 11 Sep 2018, 23:31, edited 20 times in total.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#2 Post by don570 »

I believe that there is an incompatibility with Pwidgets

I use an invisible entry box to form the 'Add' button.
Here is the code. See 'visible='false''

Image

When I tested on Precise NOP note that the invisible entry box
is visible . The app can still be used.

Image

R-S-H
Posts: 487
Joined: Mon 18 Feb 2013, 12:47

#3 Post by R-S-H »

It has been gettext'd for foreign translators
There is no .po or .pot file inside the .pet. How should one translate to different languages?
[b][url=http://lazy-puppy.weebly.com]LazY Puppy Home
The new LazY Puppy Information Centre[/url][/b]

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#4 Post by Flash »

Don, will it copy in the order the files are numbered? When I copy mp3 files to my mp3 player, I have to use rsync -a because simply dragging and dropping or using cp from the command line results in the files being transferred (copied) in some semi-random order. That causes a problem because every mp3 player I've tried so far ignores the file names and instead plays the files in the order they were loaded into the mp3 player. Somehow rsync -a forces the files to be loaded in numerical order, which is the way I want them to play.

R-S-H
Posts: 487
Joined: Mon 18 Feb 2013, 12:47

#5 Post by R-S-H »

Hi.

The GUI appears after doing a right-click onto a file and choosing copy to.... If I'm clicking then the "add a folder to list" button and am closing the file selector gui by its top right close button, the copy process begins to start without any warning, when the file is not already available.

I did this accidentally after right clicking a directory (for testings) containing around 8 GB of files. Since the destination directory was /root/Downloads and the process could not be stopped I've had to watch the directory /root/Downloads and pressing ctrl-a from time to time to remove these files to avoid system crash while writing into empty RAM (have only 1.5 GB) - for some minutes!

Was not funny! :lol:

Also:

Code: Select all

window-position="2"
would be useful instead of -c

RSH
[b][url=http://lazy-puppy.weebly.com]LazY Puppy Home
The new LazY Puppy Information Centre[/url][/b]

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#6 Post by don570 »

Flash wrote:Somehow rsync -a forces the files to be loaded
in numerical order, which is the way I want them to play.
Have you tried the -p option when using cp command.
If that doesn't work then I'll put a toggle switch to allow
rsync -a to be used instead of cp


p (preserve) – the p flag preserves the following characteristics of
each source path in the corresponding target: The time of the last data
modification and the time of the last access, the ownership (only if it has
permissions to do this), and the file permission bits.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#7 Post by don570 »

RSH wrote:How should one translate to different languages?
Instructions to translate....

Load devx file (with SFS on the fly)

Set your language

Launch Momanager and find the script (=copy-fast)
on list of untranslated scripts


A mo file is automatically created at end of process.

Poedit isn't needed unless you want fancier interface.

________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#8 Post by don570 »

If I'm clicking then the "add a folder to list" button and am
closing the file selector gui by its top right close button,
Is this a problem with a too lively mouse??

Have you tried to deaden it with the mouse wizard??
_________________________________________

R-S-H
Posts: 487
Joined: Mon 18 Feb 2013, 12:47

#9 Post by R-S-H »

Ok, I see.

I would have to use my LazY Precise for this.

Thanks for the info.

RSH
[b][url=http://lazy-puppy.weebly.com]LazY Puppy Home
The new LazY Puppy Information Centre[/url][/b]

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#10 Post by don570 »

Momanager doesn't have to be installed, but it's the easiest way
if it is.

I think poedit will do the translation if the xgettext is installed.

__________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#11 Post by don570 »

New version 1.6

improvements

1) I switched to 'rsync -a' to copy a folder

2) help button to give location of the list of copied files

3) A folder is updated with new files
when a folder with same name is in the destination location.

4) pot file available for translators. File in and send back.

___________________________________

scsijon
Posts: 1596
Joined: Thu 24 May 2007, 03:59
Location: the australian mallee
Contact:

1.6< problem

#12 Post by scsijon »

I am getting the problem on a wary 5392 (my default online satellite machine).

I shall test on the others later and update this, but this is what i was getting on all three.

I have attached a image with a fake .gz for your perusal.

regards
scsijon

UPDATED: Interesting, for my wary/racy pre 5.5 (5.4.90/3) and 5.5 without the service pack have problems, add the service pack, it's gone. I shall have to update my others as I do like your little package. Sorry for the trouble.
Attachments
capture8157.png
(13.5 KiB) Downloaded 3371 times

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#13 Post by don570 »

To scsijon ....

If you could track down the source of the bug that would be useful.

I don't think the version of gtkdialog makes any difference.

Pwidgets does some monkeying around with the gtkdialog theme.
I suspect that.

What is the gtkdialog theme when the visibility bug occurs.

Does the upgrade change this theme??


____________________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#14 Post by don570 »

version 1.7

I worked on suggestions by RSH

1) Changed window placement to "2"

2) I looked into the problem with the close box
and I discovered that I didn't understand the importance
of the variable EXIT when relaunching program .
I think that this is now fixed in version 1.7.

Now unintended copying won't take place.

________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#15 Post by don570 »

version 1.8

Buttons are wider to accept foreign translations.

I tried an Arabic translation :lol:

Image

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

Copy fast - Version 1.9

#16 Post by don570 »

Version 1.9

During a folder copy I now show a list of files that have been copied.

Because rsync -a is used for a folder copy, updating a folder is
done efficiently i.e. only a newly created file is copied to new location.

The window will explain which files are copied.

Also fixed a bug where a file was copied twice. :oops:

___________________________________________

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#17 Post by Flash »

I haven't tried 1.9 yet but I tried both 1.6 and 1.8. When I installed the 1.6 .pet in Slacko, it said there would be an entry under Utilities, but there wasn't, or at least I couldn't find it. Slacko's Menu design is not to my liking. 1.8 said there'd be an entry under Desktop, but again I couldn't find one.
However, both 1.6 and 1.8 did seem to work perfectly when I right-clicked on an author directory and chose "Copy to" my mp3 player. Note that this copies a book subdirectory within the author directory. So far, the files in the books I copied are playing in the correct order. I did not find a log in /tmp after the copying was done in 1.8, but I don't really need one as long as I'm confident that the copy is going right.

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

Dutch translation

#18 Post by Bert »

Nice tool!

Thank you Don.

Here's the Dutch translation file.
Attachments
MoManager-nl-copy-fast-1.9.tar.gz
(1.31 KiB) Downloaded 944 times
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#19 Post by don570 »

I made the Arab mo file and posted in first post.

It's missing a couple of translations because it's using copy-fast 1.6 pot
and I made a few improvements in version 1.9

I noticed that rsync -a is slow in doing folder copies, but the benefits
outweigh the slowness, so I'll keep it.

Image


______________________________________________________
Flash wrote: When I installed the 1.6 .pet in Slacko, it said there would be an entry under Utilities, but there wasn't, or at least I couldn't find it. Slacko's Menu design is not to my liking. 1.8 said there'd be an entry under Desktop, but again I couldn't find one.
I fixed that problem in version 1.9. The problem is that a version of
puppy linux (maybe Slacko?) has a bug in the dir2pet application
that puts unwanted desktop files in Building block apps.

___________________________________________________

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#20 Post by Flash »

I suspect rsync's speed is limited by the writing speed of the target drive, but I only have flash drives to go by. Have you tried using it to copy a folder to a fast-write media such as a hard disk?

Post Reply