KDE Dolphin - Service Menus

After the last update I noticed different behavior in KDE Dolphin.
I have got Service Menus for encryption/decryption/merge of PDFs.
It worked before with this syntax:

[Desktop Entry]
Type=Service
MimeType=application/pdf;
ServiceTypes=KonqPopupMenu/Plugin
Icon=cut
Name=PDF tools
X-KDE-Priority=TopLevel
X-KDE-Submenu=PDF Tools
Actions=Unlock_PDF;Lock_PDF;Merge_PDF


[Desktop Action Lock_PDF]
Name=Lock PDF(s)
Icon=document-encrypt
Exec=pass=$(kdialog --password "ENTER PASSWORD");add=$(kdialog --inputbox "Addition to to file name" "locked");for infile in %F; do baseFilename=`basename "${infile}" ."pdf"`; outfile="${baseFilename}_${add}.pdf"; qpdf --encrypt ${pass} ${pass} 256 -- "${infile}" "${outfile}"; done

[Desktop Action Merge_PDF]
Name=Merge PDFs
Icon=merge
Exec=fn=$(kdialog --inputbox "File name" "merged.pdf");qpdf --empty --pages %F -- ${fn}

[Desktop Action Unlock_PDF]
Name=Unlock PDF(s)
Icon=document-decrypt
Exec=pass=$(kdialog --password "ENTER PASSWORD");add=$(kdialog --inputbox "Addition to to file name" "unlocked");for infile in %F; do baseFilename=`basename "${infile}" ."pdf"`; outfile="${baseFilename}_${add}.pdf"; qpdf --password=${pass} --decrypt "${infile}" "${outfile}"; done

Previously, when Plasma 6 update happened, I needed to change service menus location to ~/.local/share/kio… so it is not that.

What I needed to do is the change of syntax:

[Desktop Entry]
Type=Service
MimeType=application/pdf;
ServiceTypes=KonqPopupMenu/Plugin
Icon=cut
Name=PDF tools
X-KDE-Priority=TopLevel
X-KDE-Submenu=PDF Tools
Actions=Unlock_PDF;Lock_PDF;Merge_PDF


[Desktop Action Lock_PDF]
Name=Lock PDF(s)
Icon=document-encrypt
Exec=pass=$(kdialog --password "ENTER PASSWORD");add=$(kdialog --inputbox "Addition to to file name" "locked");for infile in %F; do baseFilename=`basename "$infile" ."pdf"`; outfile="$baseFilename"_"$add".pdf; qpdf --encrypt $pass $pass 256 -- "$infile" "$outfile"; done

[Desktop Action Merge_PDF]
Name=Merge PDFs
Icon=merge
Exec=fn=$(kdialog --inputbox "File name" "merged.pdf");qpdf --empty --pages %F -- $fn

[Desktop Action Unlock_PDF]
Name=Unlock PDF(s)
Icon=document-decrypt
Exec=pass=$(kdialog --password "ENTER PASSWORD");add=$(kdialog --inputbox "Addition to to file name" "unlocked");for infile in %F; do baseFilename=`basename "$infile" ."pdf"`; outfile="$baseFilename"_"$add".pdf; qpdf --decrypt --password=$pass "$infile" "$outfile"; done

Basically, I needed to replace curly brackets which, from some reason, don’t work on my machine.

Any idea why this is happening ?

My conf is i5, 15 GB RAM, KDE Plasma 6.0.5, KDE Framework: 6.3.0, Kernel: 6.9.5-1-MANJARO (64-bit)