I was lurking on the Kubuntu subreddit and there was a post complaining that with Zorin - the users previous distro - he could click on an archive file and it would automatically extract. He wanted that behavior in Kubuntu because I guess three clicks was too much work, LOL.
Anyway, I decided to fix it for him because KDE can do almost anything.
This did exactly what he asked for.
If you prefer to not create a new folder and extract into the same folder as the zip file: change -ba to just -b
Repeat steps 4 through 9 for each archive file type you want to auto-extract.
Anyway, I decided to fix it for him because KDE can do almost anything.
- I created a file named "autoark" and put it in my ~/.local folder
- I edited the file and entered this code below
- I set the file as executable.
- I right-clicked on a ZIP archived file and selected "Properties"
- I clicked on "Change" to the right of "Open with:"
- I clicked on "+ Add..."
- I typed in ~/.local/autoark as the application and clicked OK.
- I verified "autoark" is at the top of the "Application Preference Order"
- Click "OK" twice to close the dialog.
- In "System Settings > General Behavior > Clicking" select "Opens them"
- Now when I click on a ZIP file, it automatically extracts the contents into a new folder with the name of the zip file.
Code:
#!/bin/bash ark -ba $1
If you prefer to not create a new folder and extract into the same folder as the zip file: change -ba to just -b
Repeat steps 4 through 9 for each archive file type you want to auto-extract.





Kool. KFN delivers.


Comment