Ubuntu 如何将碎片添加到KDE上下文菜单以安全删除文件/文件夹?

Ubuntu 如何将碎片添加到KDE上下文菜单以安全删除文件/文件夹?,ubuntu,linux-mint,kde,shred,Ubuntu,Linux Mint,Kde,Shred,如何将实用程序添加到Dolphin(Linux Mint 18 KDE)的上下文菜单中,以删除文件和文件夹 使用以下内容创建文件shread.desktop: 使用以下内容创建文件shread_文件夹。桌面: 将这些文件放在这里:/usr/share/kservices5/servicemones/() 重新启动(或重新启动会话) 结果: 其他信息: MimeType对于文件是all/allfiles,对于文件夹是inode/directory 使用过的切碎选项: 删除带有碎片的文件夹的详细信

如何将实用程序添加到Dolphin(Linux Mint 18 KDE)的上下文菜单中,以删除文件和文件夹

  • 使用以下内容创建文件
    shread.desktop
  • 使用以下内容创建文件
    shread_文件夹。桌面
  • 将这些文件放在这里:
    /usr/share/kservices5/servicemones/
    ()
  • 重新启动(或重新启动会话)
  • 结果:

    其他信息:

  • MimeType
    对于文件是
    all/allfiles
    ,对于文件夹是
    inode/directory
  • 使用过的切碎选项:
  • 删除带有碎片的文件夹的详细信息:
  • 以下是有关创建关联菜单项的详细信息:
  • [Desktop Entry]
    Type=Service
    ServiceTypes=KonqPopupMenu/Plugin
    MimeType=all/allfiles;
    Actions=Shred
    #X-KDE-Submenu=Shred
    
    [Desktop Action Shred]
    Name=Safe Remove
    Name[ru]=Удалить навсегда
    Icon=trash-empty
    Exec=shred -u -f -z -n3 %u
    
    [Desktop Entry]
    Type=Service
    ServiceTypes=KonqPopupMenu/Plugin
    MimeType=inode/directory;
    Actions=Shred
    #X-KDE-Submenu=Shred
    
    [Desktop Action Shred]
    Name=Safe Folder Remove
    Name[ru]=Удалить папку навсегда
    Icon=trash-empty
    Exec=find %u -type f -exec shred -u -f -z -n3 {} \;
    #Exec=find %u -type f -exec notify-send {} '' \;
    
    -u  - After shredding a file, deallocate it (if possible) and then remove it.
    -f  - Change permissions to allow writing if necessary.
    -z  - Add a final overwrite with zeros to hide shredding.
    -n3 - Use 3 passes of overwriting.
    %u  - The file path for removing.