Extract And Compress KDE4

Dolphin Service Menus

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

4
5 .8
Description:

This is a Service Menu to compress and extract files and folders.

After a long period of not maintaining this servicemenu (Sorry, sorry, sorry!), I'm back to fix some bugs and add translations.
Because of having Ark and it's Service Menu back, I won't add new features or make a huge rework of this one.

Thanks for your appreciation.


Installation:
1. Download and extract
2. go inside the extracted folder
3. execute the install-script (install.sh) and follow the dialogs
4. enjoy:-)

NOTE: The programs p7zip, bunzip2, bzip2, gzip, rar, unrar, tar, zip, unzip and unace must be installed.

Supported languages:
German, English, French, Italian, Spanish, Chinese Simplified, Portuguese (Brazilian), Czech, Polish, Turkish, Danish, Russian and Catalan.

NOTE:
If your language isn't supported yet then just do this:
- add your language strings to the .desktop-files
- go inside the dialogs-folder
- add your language strings to the dialog-scripts
- send me a message
Last changelog:

11 years ago

v1.4.4

- added detectection for local servicemenu-folder inside install-script (thanks to bitcrazy)
- fixed bug in root-uninstallation
- fixed corupted translation files (thanks to rakekniven)
- fixed non-XDG-Standard desktop-files (thaks to sarhugo)
- fixed bug that doesn't istalled "extrac_7zip_pw_to_folder" as root (thanks to superandrzej)
- added catalan translation (thanks to lesergi)

--------------------------------
v1.4.3

- added russian translation (thanks to peabody for the translation!)

---------------------
v1.4.2

- added danish translation (thanks to cb400f for the translation!)

---------------------
v1.4.1

- added uninstall-script (uninstall/uninstall.sh)

---------------------
v1.4

- added support for compressing multiple files to one archive (by choosing more than one file/folder a dialog appears and asks for a nome of the archive - NOTE: If you choose bz2 or gz and you selected more than one file, a tar.bz2 or tar.gz archive will be created)
- renamed INSTALL.sh to install.sh

-------------------------------

You will find a complete changelog inside the archive.

lazyboy

12 years ago

with "sh /path/to/INSTALL.sh" it works.
The problem seems to be when executing it from the Install dir, so with "./INSTALL.sh" or "sh INSTALL.sh"

Report

lazyboy

12 years ago

I choose system wide installation, but as soon as I insert my password it says:

"Command './src/en/copyroot' not found."

Same for other languages.

Report

C

painkiller101

12 years ago

Hi and sorry for this late answer!

It seems to me that it has something to do with space characters inside the path where the INSTALL.sh file exists.
I'll try to fix this problem, but don't know how long it takes.
Until then i can just suggest you to move the extracted folder inside a path without space characters.

Sorry and thank you for reporting this bug.

Report

eusonig

12 years ago

Sorry, i don't know how to erase the duplicate comments :(.

Report

eusonig

12 years ago

A good job but you have a serious bug in your code with blank spaces in names and directories.

You must change at least 3 lines in your scripts, but is better if you use quotes in all your "file" and "directory" commands :).

The 3 lines are:

--orgname=$(basename $1)
++orgname=$(basename "$1")

--dir=$(dirname $1)
++dir=$(dirname "$1")

--cd $dir
++cd "$dir"

Report

C

painkiller101

12 years ago

Thank you very much for your hints!

I'm glad to learn more and more about scripting. Now i know that i've wasted a lot of time to solve the problem of extraction/compression of names with space characters inside (But learned instead other things in bash ;-)).

Thank you again!
It's updated in the new version1.1.

Report

eusonig

12 years ago

Your welcome. This service menu are really useful :).

Report

eusonig

12 years ago

A good job but you have a serious bug in your code with blank spaces in names and directories.

You must change at least 3 lines in your scripts, but is better if you use quotes in all your "file" and "directory" commands :).

The 3 lines are:

--orgname=$(basename $1)
++orgname=$(basename "$1")

--dir=$(dirname $1)
++dir=$(dirname "$1")

--cd $dir
++cd "$dir"

Report

eusonig

12 years ago

A good job but you have a serious bug in your code with blank spaces in names and directories.

You must change at least 3 lines in your scripts, but is better if you use quotes in all your "file" and "directory" commands :).

The 3 lines are:

--orgname=$(basename $1)
++orgname=$(basename "$1")

--dir=$(dirname $1)
++dir=$(dirname "$1")

--cd $dir
++cd "$dir"

Report

eusonig

12 years ago

A good job but you have a serious bug in your code with blank spaces in names and directories.

You must change at least 2 lines in your scripts, but is better if you use quotes in all your "file" and "directory" commands :).

The 2 lines are:

--orgname=$(basename $1)
++orgname=$(basename "$1")

--cd $dir
++cd "$dir"

Report

GuSArg

12 years ago

Trying to install 1.0.1 does not work. When i try to install system wide i have:

chosen installation type: systemwide
cp: no se puede crear el fichero regular «./src/Spanish»: No existe el fichero ó directorio
root password required
sudo: ./src/Spanish/copyroot: command not found

rm: no se puede borrar «./src/Spanish/copyroot»: No existe el fichero ó directorio
Installation done!

First, copyroot is on src dir, not inside (in this case) Spanish dir...

Cheers.

Report

C

painkiller101

12 years ago

Hello,

i've tried out your scenario by installing the servicemenu in spanish/systemwide and I really couldn't find out this problem, because it doesn't exist here. Does it work if you click/doubleclick the INSTALL.sh file?
Could you please redownload the package and try it again? I've renamed the language folders to international shortcuts (e.g Spanish to es).

Thank you and sorry for my late answer.

Report

GuSArg

12 years ago

Ok, by double click in it the install works, but only for local... systemwide does not work... files are not being copied... (i've choosed for example in my Kubuntu Hardy using kde4.1rc1 this path: /usr/lib/kde4/share/kde4/services/ServiceMenus/ and after installed there, i don't have any files of this there...)

Cheers.

Report

C

painkiller101

12 years ago

Hi and excuse the mistake i've done inside the install-script.

This error happened, because of another different kde4-installation on another distribution.
I've changed the script now in a way that you have to enter the full path to the servicemenu-folder for systemwide installation and not only the kde4-folder.

I hope that it works now for you.

Thank you for your feedback!

Report

GuSArg

12 years ago

By the way, tried to install with a press kde4.1rc1 (and fresh /.kde4/ dir and does not work... y creates an file called ServiceMenu... with has inside the extract desktop file... very weird...

Report

C

painkiller101

12 years ago

That's really weird.

Can you tell me the full path to the local serviemenu-folder on your kubuntu-machine with kde4.1rc1. Maybe i can find the problem in that way.

Thank you.

Report

elchevive

12 years ago

Hi...

I've made a pt_BR version of your plugin...

http://rapidshare.com/files/129216338/Portuguese_Brazilian.tar.gz.html

regards,

Luiz

Report

C

painkiller101

12 years ago

Hi and Thank you for this translation!

I'll will implement it as soon as possible.
Can you tell me how huge the differences between pt_br and pt_pt are in this translation? I'm asking this, because i would also provide pt_pt for this servicemenu.

Thank You again!

Report

lucianolev

12 years ago

Hi! Thanks for creating this, really useful.
The dark side: I think it's a very bad idea to use $HOME/bin as default path, for tow reasons. You are assuming in the script that $HOME/bin already exists which is wrong in many scenarios. On my Gentoo box, the script created a "bin" file instead and everything failed. Also, if $HOME/bin is not in PATH (like in make case) extraction will not work.
I think a better approach should be to copy the scripts in the local bin path, in my case /usr/local/bin. (though it should be installed as root in that case). I'm no expert but there should be an optimal solution which works on every distro.
Thanks for your time.

Report

C

painkiller101

12 years ago

Hello and thank your for using it!

I appreciate your comments and really don't know every folder-structure of any distribution.
So i will improve the installation until 1.0final and thank you very much for your hints. :-)

Report

echoes

12 years ago

i have an issue when trying to extract archives. i also get the "Could not find the program 'extract_to_folder.sh'"
openSUSE 11.0 x86
KDE 4.0.85 (4.1b2+)

Report

C

painkiller101

12 years ago

Hello and thank you for using it!

First of all look inside your "$HOME/bin" folder if this file exists there.
If not please copy the script file/s there or as root to '/usr/local/bin'.
If yes then look if the script file/files, which belong to this servicemenu, are executable.

If nothing helps, please download and install it again.

Thank you.

Report

echoes

12 years ago

apparently, on opensuse, as i suspected, ~/bin does not exist. i moved the scripts from /usr/bin to /usr/local/bin like you suggested, but it still did not work.

i should clarify that the menus "compress" & "extract" do show in dolphin, but clicking on any of menu entries generates the "Could not find the program..." error.

Report

echoes

12 years ago

sorry, i was able to get them to work. for some reason, the scripts were not marked as executable.

although, it would be nice if the scripts/servicemenus were able to extract to the working folder instead of to ~/ by default.

also, i have found that the extraction scripts do not work properly with archives with the '#' character in their filename. it says that they extract successfully when they do not. this may also be the case with the compression scripts, but i have not tested those.

Report

C

painkiller101

12 years ago

Hello again.

At first i'm also using opensuse 11 and the folder $HOME/bin exists here. Don't know why you don't have it :-(

Instead of this the Install-script is being improved and users will have the choise where the files should be installed.

The problem that files can't be extracted when they have a # in their name isn't reproducable for me. Neither for compression nor for extraction.
Could you please tell me which filetypes you used?

Thank you!

Report

11 years ago

v1.4.4

- added detectection for local servicemenu-folder inside install-script (thanks to bitcrazy)
- fixed bug in root-uninstallation
- fixed corupted translation files (thanks to rakekniven)
- fixed non-XDG-Standard desktop-files (thaks to sarhugo)
- fixed bug that doesn't istalled "extrac_7zip_pw_to_folder" as root (thanks to superandrzej)
- added catalan translation (thanks to lesergi)

--------------------------------
v1.4.3

- added russian translation (thanks to peabody for the translation!)

---------------------
v1.4.2

- added danish translation (thanks to cb400f for the translation!)

---------------------
v1.4.1

- added uninstall-script (uninstall/uninstall.sh)

---------------------
v1.4

- added support for compressing multiple files to one archive (by choosing more than one file/folder a dialog appears and asks for a nome of the archive - NOTE: If you choose bz2 or gz and you selected more than one file, a tar.bz2 or tar.gz archive will be created)
- renamed INSTALL.sh to install.sh

-------------------------------

You will find a complete changelog inside the archive.

12345678910
1
product-maker devdol Dec 29 2015 9 excellent
Be the first to comment
usrkl
Nov 13 2009
bobcollard
Aug 26 2009
Montblanc
Mar 27 2009
SeaJey
Jan 04 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.4.4
updated Mar 12 2009
added Jun 28 2008
downloads 24h
0
mediaviews 24h 0
pageviews 24h 6