Results 1 to 8 of 8

Thread: Help dolphin service menus

  1. #1
    Join Date
    Apr 2015
    Location
    The Earth
    Posts
    496

    Default Help dolphin service menus

    Hi
    i find this add-on for dolphin and copy this path(/home/~/.local/share/kservices5/ServiceMenus) but not show in the right click menu
    i installed app "srm" too
    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Actions=Secure_remove;
    Icon=clanbomber
    ServiceTypes=all/allfiles
    ExcludeServiceTypes=kdedevice/*
    
    [Desktop Action Secure_remove]
    Exec=`kdialog --caption "Secure Delete" --menu "Choose how:" "rm" "Delete only" "srm -l" "Fast and unsecure" "srm -f" "Slow and more secure" srm "Very slow and very secure"` %U
    Icon=clanbomber
    Name=Delete file(s) DEFINITELY!
    Name[it]=Distruggi il file DEFINITIVAMENTE!
    Does anyone know the problem?
    Thanks
    Dual-boot openSUSE and win10
    OpenSUSE Tumbleweed ; Plasma 5.15.x:" LVM encrypted"
    My Partition: GPT and UEFI system
    Hp ProBook 450 G1

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,009
    Blog Entries
    1

    Default Re: Help dolphin service menus

    This might answer your question
    https://forum.kde.org/viewtopic.php?f=67&t=126244

  3. #3
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,009
    Blog Entries
    1

    Default Re: Help dolphin service menus


  4. #4
    Join Date
    Apr 2015
    Location
    The Earth
    Posts
    496

    Default Re: Help dolphin service menus

    Quote Originally Posted by deano_ferrari View Post
    Thanks
    I mean the problem is that the script
    Is not true,It was written for the old version and should be rewritten for new version dolphin
    not show in the right click because The secure_delete.desktop has problems
    Does anyone know the problem?
    Dual-boot openSUSE and win10
    OpenSUSE Tumbleweed ; Plasma 5.15.x:" LVM encrypted"
    My Partition: GPT and UEFI system
    Hp ProBook 450 G1

  5. #5
    Join Date
    Jan 2016
    Location
    Manchester, UK
    Posts
    279

    Default Re: Help dolphin service menus

    Quote Originally Posted by 123thinksuse View Post
    Hi
    i find this add-on for dolphin and copy this path(/home/~/.local/share/kservices5/ServiceMenus) but not show in the right click menu
    Could you try to put the script into this folder,

    Code:
    ~/.local/share/kservices5/
    because I don't know if it works in a subfolder to the working paths shown by

    Code:
    $ kf5-config --path services
    openSUSE Tumbleweed (usually the latest snapshot) w/ KDE Plasma 5

  6. #6
    Join Date
    Jan 2016
    Location
    Manchester, UK
    Posts
    279

    Default Re: Help dolphin service menus

    Quote Originally Posted by cnzhx View Post
    Could you try to put the script into this folder,

    Code:
    ~/.local/share/kservices5/
    because I don't know if it works in a subfolder to the working paths shown by

    Code:
    $ kf5-config --path services
    Sorry, I tried and found it does works in subfolders.

    Then, I made some changes to your code and now this works for me (not the function but the service menu showing in the right click menu of Dolphin),

    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Actions=Secure_remove;
    Icon=clanbomber
    ServiceTypes=all/allfiles
    ExcludeServiceTypes=kdedevice/*
    Type=Service
    X-KDE-ServiceTypes=KonqPopupMenu/Plugin
    MimeType=all/allfiles
    
    [Desktop Action Secure_remove]
    Exec=`kdialog --caption "Secure Delete" --menu "Choose how:" "rm" "Delete only" "srm -l" "Fast and unsecure" "srm -f" "Slow and more secure" srm "Very slow and very secure"` %U
    Icon=clanbomber
    Name=Delete file(s) DEFINITELY!
    Name[it]=Distruggi il file DEFINITIVAMENTE!
    openSUSE Tumbleweed (usually the latest snapshot) w/ KDE Plasma 5

  7. #7
    Join Date
    Apr 2015
    Location
    The Earth
    Posts
    496

    Default Re: Help dolphin service menus

    Quote Originally Posted by cnzhx View Post
    Sorry, I tried and found it does works in subfolders.

    Then, I made some changes to your code and now this works for me (not the function but the service menu showing in the right click menu of Dolphin),

    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Actions=Secure_remove;
    Icon=clanbomber
    ServiceTypes=all/allfiles
    ExcludeServiceTypes=kdedevice/*
    Type=Service
    X-KDE-ServiceTypes=KonqPopupMenu/Plugin
    MimeType=all/allfiles
    
    [Desktop Action Secure_remove]
    Exec=`kdialog --caption "Secure Delete" --menu "Choose how:" "rm" "Delete only" "srm -l" "Fast and unsecure" "srm -f" "Slow and more secure" srm "Very slow and very secure"` %U
    Icon=clanbomber
    Name=Delete file(s) DEFINITELY!
    Name[it]=Distruggi il file DEFINITIVAMENTE!
    Thank you
    It works for me
    Dual-boot openSUSE and win10
    OpenSUSE Tumbleweed ; Plasma 5.15.x:" LVM encrypted"
    My Partition: GPT and UEFI system
    Hp ProBook 450 G1

  8. #8
    Join Date
    Jan 2016
    Location
    Manchester, UK
    Posts
    279

    Default Re: Help dolphin service menus

    Quote Originally Posted by 123thinksuse View Post
    Thank you
    It works for me
    I'm glad it helps. I happened to make a service menu a while ago.
    openSUSE Tumbleweed (usually the latest snapshot) w/ KDE Plasma 5

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •