These two files go in ~/.local/share/kservices5/ServiceMenus/
.
Mark as executable.
Ensure unar
is installed for the decompression to work.
[Desktop Entry] | |
Type=Service | |
Icon=ark | |
X-KDE-ServiceTypes=KonqPopupMenu/Plugin | |
MimeType=inode/directory; | |
Actions=compress; | |
Encoding=UTF-8 | |
[Desktop Action compress] | |
Name=Compress Directory into 7zip | |
Icon=ark | |
Exec=7z a -mx0 %f.7z %f; rm -r %f |
[Desktop Entry] | |
Type=Service | |
Icon=ark | |
X-KDE-ServiceTypes=KonqPopupMenu/Plugin | |
MimeType=application/zip;application/vnd.rar;application/x-7z-compressed; | |
Actions=decompress; | |
Encoding=UTF-8 | |
[Desktop Action decompress] | |
Name=Decompress file into subdirectory | |
Icon=ark | |
Exec=unar %f; rm %f |