Announcement

Collapse
No announcement yet.

Kdialog script in Dolphin service menu not honored

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Kdialog script in Dolphin service menu not honored

    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):
    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:
    Click image for larger version  Name:	Screenshot_20260623_115545.jpg Views:	0 Size:	12.7 KB ID:	692862
    Last edited by oshunluvr; Today, 10:05 AM.

    Please Read Me

    #2


    Key Considerations (2026)
    • Placement: Service menus should be placed in ~/.local/share/kio/servicemenus/.
    • Executable Permission: The .desktop file must be marked as executable for the icon and action to appear, particularly with local user installations.
    • Plasma 6 Changes: In Plasma 6, X-KDE-ServiceTypes=KonqPopupMenu/Plugin is generally unnecessary if MimeType= is included.
    • Restart Needed: Dolphin often needs to be restarted to activate changes in icons or menu structure.

    If the Icon= is not appearing, verify that qt6ct is installed and a valid icon theme is applied.

    Windows no longer obstruct my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment

    Users Viewing This Topic

    Collapse

    There are 0 users viewing this topic.

    Working...
    X