-
-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update de-uml.txt for 10.3 #142
Conversation
There is a slight problem. Hello, in the previous version of PeaZip 10.2.0, these codes worked perfectly for me to add the program's functions to the context menu. I was using Debian, and now I am on Fedora, but these codes no longer work. How can I fix this issue? Is it due to a path change or something else? Previously, these codes successfully added the program's functions to the context menu, but now, after installing the program, only a single icon appears with its default settings. Please help me resolve this issue. mkdir -p ~/.local/share/kservices5/ServiceMenus/ 1 [Desktop Action PeaZipBrowse] [Desktop Action PeaZipBrowse] 2 [Desktop Action PeaZipOpen] [Desktop Action PeaZipOpen] 3 [Desktop Action PeaZipOpenAsArchive] [Desktop Action PeaZipOpenAsArchive] 4 [Desktop Action AddToArchive] [Desktop Action PeaZipAddToArchive] 5 [Desktop Action ExtractHere] [Desktop Action ExtractHere] 6 [Desktop Action ExtractHereFolder] [Desktop Action ExtractHereFolder] 7 [Desktop Action ExtractHereSmart] [Desktop Action ExtractHereSmart] 8 [Desktop Action Convert] [Desktop Action Convert] 9 [Desktop Action PeaZipSFX] [Desktop Action PeaZipSFX] |
May the issue be due to a newer KDE version? In KDE6 (and latest KDE5 versions) the location for service menus directory was moved: https://develop.kde.org/docs/apps/dolphin/service-menus/ kservices5 is no longer used, and |
I succeeded in that, honestly, but it took a lot of time. Now everything is
working, except for the "Test archive(s)" feature. When I click on it, the
program opens instead of verifying the archive. Can you help me?
Browse path with PeaZip
mkdir -p ~/.local/share/kio/servicemenus
nano ~/.local/share/kio/servicemenus/peazip-browse.desktop
[Desktop Entry]
Type=Service
X-KDE-Priority=TopLevel
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=inode/directory;
Actions=BrowsePath;
[Desktop Action BrowsePath]
Name=Browse Path with PeaZip
Exec=peazip %U
Icon=peazip
chmod +x ~/.local/share/kio/servicemenus/peazip-browse.desktop
Open with PeaZip
nano ~/.local/share/kio/servicemenus/peazip-open.desktop
[Desktop Entry]
Type=Service
X-KDE-Priority=TopLevel
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=application/zip;application/x-rar;application/x-7z-compressed;application/x-tar;application/x-gzip;application/x-bzip2;application/x-xz;application/octet-stream;inode/directory;
Actions=OpenWith;
[Desktop Action OpenWith]
Name=Open with PeaZip
Exec=peazip %U
Icon=peazip
chmod +x ~/.local/share/kio/servicemenus/peazip-open.desktop
Open as archive
nano ~/.local/share/kio/servicemenus/peazip-open-as-archive.desktop
[Desktop Entry]
Type=Service
X-KDE-Priority=TopLevel
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=application/zip;application/x-rar;application/x-7z-compressed;application/x-tar;application/gzip;application/x-bzip;application/x-xz;application/octet-stream;
Actions=OpenAsArchive;
[Desktop Action OpenAsArchive]
Name=Open as Archive with PeaZip
Exec=peazip "%U"
Icon=peazip
chmod +x ~/.local/share/kio/servicemenus/peazip-open-as-archive.desktop
Add to Archive
nano ~/.local/share/kio/servicemenus/peazip-add-to-archive.desktop
[Desktop Entry]
Type=Service
X-KDE-Priority=TopLevel
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=inode/directory;application/octet-stream;
Actions=AddToArchive;
[Desktop Action AddToArchive]
Name=Add to Archive
Exec=peazip -add "%U"
Icon=package-x-generic
chmod +x ~/.local/share/kio/servicemenus/peazip-add-to-archive.desktop
Add to separate archive(s)
nano ~/.local/share/kio/servicemenus/peazip-add-to-separate-archive.desktop
[Desktop Entry]
Type=Service
X-KDE-Priority=TopLevel
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=inode/directory;application/octet-stream;
Actions=AddToSeparateArchive;
[Desktop Action AddToSeparateArchive]
Name=Add to Separate Archive(s)
Exec=peazip -add2sep "%U"
Icon=package-x-generic
chmod +x
~/.local/share/kio/servicemenus/peazip-add-to-separate-archive.desktop
Add to self-extracting archive (SFX)
nano ~/.local/share/kio/servicemenus/peazip-sfx.desktop
[Desktop Entry]
Type=Service
X-KDE-Priority=TopLevel
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=inode/directory;application/octet-stream;
Actions=AddToSFX;
[Desktop Action AddToSFX]
Name=Add to Self-Extracting Archive
Exec=peazip -add2sfx "%U"
Icon=peazip
chmod +x ~/.local/share/kio/servicemenus/peazip-sfx.desktop
Extract Here
nano ~/.local/share/kio/servicemenus/peazip-extract-here.desktop
[Desktop Entry]
Type=Service
X-KDE-Priority=TopLevel
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=application/zip;application/x-rar;application/x-7z-compressed;application/x-tar;application/x-gzip;application/x-bzip2;application/x-xz;application/x-iso9660-image;
Actions=ExtractHere;
[Desktop Action ExtractHere]
Name=Extract Here
Exec=peazip -ext2here "%U"
Icon=package-x-generic
chmod +x ~/.local/share/kio/servicemenus/peazip-extract-here.desktop
Extract Here New Folder
nano ~/.local/share/kio/servicemenus/peazip-extract-here-folder.desktop
[Desktop Entry]
Type=Service
X-KDE-Priority=TopLevel
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=application/zip;application/x-rar;application/x-7z-compressed;application/x-tar;application/x-gzip;application/x-bzip2;application/x-xz;application/x-iso9660-image;
Actions=ExtractHereFolder;
[Desktop Action ExtractHereFolder]
Name=Extract Here (New Folder)
Exec=peazip -ext2folder "%U"
Icon=package-x-generic
chmod +x ~/.local/share/kio/servicemenus/peazip-extract-here-folder.desktop
Extract Here (Smart New Folder)
nano ~/.local/share/kio/servicemenus/peazip-extract-here-smart.desktop
[Desktop Entry]
Type=Service
X-KDE-Priority=TopLevel
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=application/zip;application/x-rar;application/x-7z-compressed;application/x-tar;application/x-gzip;application/x-bzip2;application/x-xz;application/x-iso9660-image;
Actions=ExtractHereSmart;
[Desktop Action ExtractHereSmart]
Name=Extract Here (Smart New Folder)
Exec=peazip -ext2smart "%U"
Icon=package-x-generic
chmod +x ~/.local/share/kio/servicemenus/peazip-extract-here-smart.desktop
Convert
nano ~/.local/share/kio/servicemenus/peazip-convert.desktop
[Desktop Entry]
Type=Service
X-KDE-Priority=TopLevel
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=application/zip;application/x-rar;application/x-7z-compressed;application/x-tar;application/gzip;application/x-bzip;application/x-xz;
Actions=Convert;
[Desktop Action Convert]
Name=Convert Archive
Exec=peazip -convert "%U"
Icon=peazip
chmod +x ~/.local/share/kio/servicemenus/peazip-convert.desktop
Test archive(s)
nano ~/.local/share/kio/servicemenus/peazip-test-archive.desktop
[Desktop Entry]
Type=Service
X-KDE-Priority=TopLevel
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=application/zip;application/x-rar;application/x-7z-compressed;application/x-tar;application/x-gzip;application/x-bzip2;application/x-xz;application/x-iso9660-image;
Actions=TestArchive;
[Desktop Action TestArchive]
Name=Test Archive(s)
Exec=peazip -test "%U"
Icon=peazip
chmod +x ~/.local/share/kio/servicemenus/peazip-test-archive.desktop
The last step
kbuildsycoca5
🚗
في الاثنين، 24 فبراير 2025 في 7:25 م تمت كتابة ما يلي بواسطة Giorgio
Tani ***@***.***>:
… May the issue be due to a newer KDE version?
In KDE6 (and latest KDE5 versions) the location for service menus
directory was moved:
https://develop.kde.org/docs/apps/dolphin/service-menus/
kservices5 is no longer used, and
~/.local/share/kio/servicemenus
should be used instead.
—
Reply to this email directly, view it on GitHub
<#142 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUKADYVWZRVRUIHJX5KQJVD2RNPZHAVCNFSM6AAAAABXYGHTT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZZGMYDONZUGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
[image: peazip]*peazip* left a comment (peazip/PeaZip#142)
<#142 (comment)>
May the issue be due to a newer KDE version?
In KDE6 (and latest KDE5 versions) the location for service menus
directory was moved:
https://develop.kde.org/docs/apps/dolphin/service-menus/
kservices5 is no longer used, and
~/.local/share/kio/servicemenus
should be used instead.
—
Reply to this email directly, view it on GitHub
<#142 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUKADYVWZRVRUIHJX5KQJVD2RNPZHAVCNFSM6AAAAABXYGHTT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZZGMYDONZUGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
The parameter for test is -ext2test. |
Thanks, I'll check it out.
في الثلاثاء، 25 فبراير 2025 في 9:06 ص تمت كتابة ما يلي بواسطة Giorgio
Tani ***@***.***>:
… The parameter for test is -ext2test.
You can find script examples for either CLI usage and for desktop
integration in (peazip)/res/share/batch folder.
—
Reply to this email directly, view it on GitHub
<#142 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUKADYX2PF5QQJJASD5URA32RQQBXAVCNFSM6AAAAABXYGHTT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBRGA2DEMJXHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
[image: peazip]*peazip* left a comment (peazip/PeaZip#142)
<#142 (comment)>
The parameter for test is -ext2test.
You can find script examples for either CLI usage and for desktop
integration in (peazip)/res/share/batch folder.
—
Reply to this email directly, view it on GitHub
<#142 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUKADYX2PF5QQJJASD5URA32RQQBXAVCNFSM6AAAAABXYGHTT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBRGA2DEMJXHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I think this is the best. All jobs are available anyway. Thank you for your
efforts. Regards.
1
Add PeaZip functions to context menu
First make sure that the target folder exists on the device, if it does not
exist, you can create it using
mkdir -p ~/.local/share/kio/servicemenus
2
Add a key to the original context menu in a context menu without a submenu
cat << 'EOF' > ~/.local/share/kio/servicemenus/peazip-services.desktop
[Desktop Entry]
Type=Service
Actions=peazipopen;peazipexthere;peazipextfolder;peazipexthesmart;peazipadd;peaziptest;peazipconvert;peazipext;peazipadd7z;peazipaddzip
ServiceTypes=KonqPopupMenu/Plugin,inode/directory,all/allfiles
X-KDE-Priority=TopLevel
[Desktop Action peazipopen]
Exec=peazip -ext2browse %F
Icon=peazip
Name=Open as archive
[Desktop Action peazipext]
Exec=peazip -ext2full %F
Icon=peazip
Name=Extract
[Desktop Action peazipexthere]
Exec=peazip -ext2here %F
Icon=peazip
Name=Extract Here
[Desktop Action peazipextfolder]
Exec=peazip -ext2newfolder %F
Icon=peazip
Name=Extract Here (to new folder)
[Desktop Action peazipexthesmart]
Exec=peazip -ext2smart %F
Icon=peazip
Name=Extract Here (Smart New Folder)
[Desktop Action peazipadd]
Exec=peazip -add2archive %F
Icon=peazip
Name=Add to Archive
[Desktop Action peazipadd7z]
Exec=peazip -add27z %F
Icon=peazip
Name=Add to 7Z
[Desktop Action peazipaddzip]
Exec=peazip -add2zip %F
Icon=peazip
Name=Add to ZIP
[Desktop Action peaziptest]
Exec=peazip -ext2test %F
Icon=peazip
Name=Test Archive(s)
[Desktop Action peazipconvert]
Exec=peazip -add2convert %F
Icon=peazip
Name=Convert Archive
EOF
Grant the necessary permissions using the following command.
chmod +x ~/.local/share/kio/servicemenus/peazip-services.desktop
Refresh the system cache using the following command.
kbuildsycoca5
🔥🔥🔥🔥🔥🔥🔥
Add keys within a single submenu in a context menu
cat << 'EOF' > ~/.local/share/kio/servicemenus/peazip-services.desktop
[Desktop Entry]
Type=Service
X-KDE-Priority=TopLevel
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
ServiceTypes=KonqPopupMenu/Plugin,inode/directory,all/allfiles
Actions=peazipopen;peazipexthere;peazipextfolder;peazipexthesmart;peazipadd;peaziptest;peazipconvert;peazipext;peazipadd7z;peazipaddzip
X-KDE-Submenu=PeaZip
X-KDE-Submenu-Icon=peazip
[Desktop Action peazipopen]
Exec=peazip -ext2browse %F
Icon=peazip
Name=Open as archive
[Desktop Action peazipext]
Exec=peazip -ext2full %F
Icon=peazip
Name=Extract
[Desktop Action peazipexthere]
Exec=peazip -ext2here %F
Icon=peazip
Name=Extract Here
[Desktop Action peazipextfolder]
Exec=peazip -ext2newfolder %F
Icon=peazip
Name=Extract Here (to new folder)
[Desktop Action peazipexthesmart]
Exec=peazip -ext2smart %F
Icon=peazip
Name=Extract Here (Smart New Folder)
[Desktop Action peazipadd]
Exec=peazip -add2archive %F
Icon=peazip
Name=Add to Archive
[Desktop Action peazipadd7z]
Exec=peazip -add27z %F
Icon=peazip
Name=Add to 7Z
[Desktop Action peazipaddzip]
Exec=peazip -add2zip %F
Icon=peazip
Name=Add to ZIP
[Desktop Action peaziptest]
Exec=peazip -ext2test %F
Icon=peazip
Name=Test Archive(s)
[Desktop Action peazipconvert]
Exec=peazip -add2convert %F
Icon=peazip
Name=Convert Archive
EOF
Grant the necessary permissions using the following command.
chmod +x ~/.local/share/kio/servicemenus/peazip-services.desktop
Refresh the system cache using the following command.
kbuildsycoca5
.
في الثلاثاء، 25 فبراير 2025 في 9:06 م تمت كتابة ما يلي بواسطة Mourad
Benhelli ***@***.***>:
… Thanks, I'll check it out.
في الثلاثاء، 25 فبراير 2025 في 9:06 ص تمت كتابة ما يلي بواسطة Giorgio
Tani ***@***.***>:
> The parameter for test is -ext2test.
> You can find script examples for either CLI usage and for desktop
> integration in (peazip)/res/share/batch folder.
>
> —
> Reply to this email directly, view it on GitHub
> <#142 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AUKADYX2PF5QQJJASD5URA32RQQBXAVCNFSM6AAAAABXYGHTT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBRGA2DEMJXHA>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
> [image: peazip]*peazip* left a comment (peazip/PeaZip#142)
> <#142 (comment)>
>
> The parameter for test is -ext2test.
> You can find script examples for either CLI usage and for desktop
> integration in (peazip)/res/share/batch folder.
>
> —
> Reply to this email directly, view it on GitHub
> <#142 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AUKADYX2PF5QQJJASD5URA32RQQBXAVCNFSM6AAAAABXYGHTT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOBRGA2DEMJXHA>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
No description provided.