I use several Dolphin service menus I wrote to semi-automate some tasks. One of those uses ffmpeg to re-encode video files to mp4 and with custom settings to reduce their size. In this service menu I use kdialog to show a progress screen so I know when the encoding is finished.
For some reason I have not yet figured out, the icon in in progress dialog window does not display the icon I have chosen and instead displays the "Wayland" place-holder icon (white W with yellow background). This is not a big problem, but I wonder if there's a way make it display the chosen icon (convert.svg) instead
Script contents (truncated - nearly duplicate actions removed):
Pop up WIndow:
For some reason I have not yet figured out, the icon in in progress dialog window does not display the icon I have chosen and instead displays the "Wayland" place-holder icon (white W with yellow background). This is not a big problem, but I wonder if there's a way make it display the chosen icon (convert.svg) instead
Script contents (truncated - nearly duplicate actions removed):
Code:
[Desktop Entry]
Type=Service
Icon=video-mp4.svg
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=video/*;
Actions=g-copy;g-rate24;g-rate28;
#X-KDE-Priority=TopLevel
#X-KDE-Submenu=Convert-Compress
Encoding=UTF-8
[Desktop Action g-rate24]
Name=Re-encode w/rate 24
Icon=video-mp4.svg
Exec=dbusRef=$(kdialog --icon convert --title="Conversion ffmpeg" --progressbar " Converting $(basename %f) " 0); fn=%u; ffmpeg -i %u -y -vcodec libx265 -crf 24 "${fn%.*}.24".mp4; qdbus $dbusRef close; kdialog --title "Conversion complete" --passivepopup "$(basename %f) converted to MP4";
Pop up WIndow:






Comment