Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 30 Aug 2014, 00:42
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Script will compress a folder, decompress various files
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
don570


Joined: 10 Mar 2010
Posts: 3259
Location: Ontario

PostPosted: Sat 09 Jun 2012, 15:31    Post subject:  Script will compress a folder, decompress various files
Subject description: Added as right-click menu option
 

Compression of a folder and extraction of archive is possible
with this script.

It works in puppies with Rox as the file manager
and it works in Carolina which has Thunar as the file manager.


Available download:
http://www.datafilehost.com/d/3a56b906 980kb

EDIT: new version 1.8 has 7z library which is popular on Windows
platform. Also UExtract 2.7 is installed as well for an integrated
solution to compress and decompress.


The big advantage is the right click feature. Just right click
on a folder and choose to compress folder (See image)

The time to compress the folder is an estimate based
on the size of the folder.

The folder that you compress can have a blank space in the name
(See Picture)

The most recent version of gtkdialog is needed for this feature.
The time field will be blank otherwise.



Last edited by don570 on Sat 04 Jan 2014, 13:10; edited 8 times in total
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3259
Location: Ontario

PostPosted: Tue 19 Jun 2012, 16:55    Post subject: new version 1.3  

New version 1.3-

Changed to a new icon in menu ---> harddrive.png
Since it should work with all Puppies
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3259
Location: Ontario

PostPosted: Thu 28 Jun 2012, 20:16    Post subject: new version 1.4  

Version 1.4 changed the XZ compression extension
to tar.xz rather than txz on the advice of a Slack expert.

___________________________________________
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4346

PostPosted: Thu 28 Jun 2012, 20:37    Post subject:  

fyi for future development, if you have a prog that prompts you for a password or y/n you can use yes | prog (to always answer y)
Code:
yes "string" |prog
(to always answer string)or
Code:
echo "username
password" |prog

(if it asks for username then password)
, but it could as easily be any answer, like:
Code:
echo "y
y
/usr/share/Opera
/usr/lib/mozilla/plugins" | ./Opera-installer
if you wanted to automate an install (btw, those are totally made up examples, I don't even know how Opera installs these days)

-HTH
Brad

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
vicmz


Joined: 15 Jan 2012
Posts: 1105

PostPosted: Sat 07 Jul 2012, 22:27    Post subject:  

Thanks for this. For some reason, drag and drop function of XArchive desktop icon doesn't work for me, I drag and drop my files but get an empty window where I must create the archive and add the files manually.
I made a separate Spanish version, so that the symlink appears in Spanish when user right-click, my translation is inside the PET.
compression-1.4-spanish.pet
Description 
pet

 Download 
Filename  compression-1.4-spanish.pet 
Filesize  4.51 KB 
Downloaded  306 Time(s) 
compression-1.4-spanish.png
 Description   
 Filesize   24.76 KB
 Viewed   544 Time(s)

compression-1.4-spanish.png


_________________
OB Precise 14.07.26 Woof-CE|Puppy Linux en español
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3259
Location: Ontario

PostPosted: Sat 14 Jul 2012, 13:52    Post subject: New version 1.5  

New version 1.5

I made various changes like

1) new Icon choice for menu

2) Changes inside .desktop file

3) splash screen added when compressing to warn user to wait

4) Changed how gtkdialog version was selected using
Shinobar's method which should be full proof

5) Put in underscore character if folder had whitespace in it's name

6) Removal of final slash character in path if user accidently put
it in

7) A couple of new local messages were added for internationalizing

8 ) A warning if folder empty

I have put this version in my right clicks package
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3259
Location: Ontario

PostPosted: Thu 23 May 2013, 15:19    Post subject:  


Version 1.6

- I corrected bug ---> if user had typed a bad folder name
no warning would show. Now there will be at least some warning.

- Added the Spanish translation by vicz

-Changed . desktop file for German, Spanish and French names

-Thunar is now properly supported.
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3259
Location: Ontario

PostPosted: Sat 04 Jan 2014, 13:15    Post subject:  

New version 1.8

New version 1.8 has 7z library which is popular on Windows
platform. Also UExtract 2.7
is installed as well for an integrated
solution to compress and decompress.

It was tested on Precise and Carolina.
Both Rox filer and Thunar were tested.

It should work on most Puppies that Barry Kauler has created.

Gettext --> French German Spanish

_____________________________________
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0798s ][ Queries: 13 (0.0215s) ][ GZIP on ]