Everything is possible on Linux!
*.zip file with a right mouse click and go to properties. Instead of using a mouse, you can use Alt+Enter.
In the textbox, write
file-roller -h 1. Select Add to list. In case you don't have it installed, use
sudo apt install file-roller -y.
file-roller and Set as default.
file-roller is set as default. You can close the properties window. Now when you open a
zip, it will be automatically decompressed for you. To do the same for
*.tar.gz files (
application/x-compressed-tar in general), skip adding
file-roller to list as it's already there - only set as default.
Why does it work? Read the manual (
file-roller [OPTIONS...] [FILE...]
Extract archives asking the destination folder and quit the program
Extract archives using the archive name as destination folder and quit the program
1 Some people prefer
file-roller -f instead of
-h to choose the destination folder.
See also Archive manager that extracts into new folder named after archive