Results 1 to 2 of 2

Thread: howto "creating Konqueror Service Menus" ?

  1. #1
    Join Date
    Dec 2006
    Beans
    101
    Distro
    Kubuntu 8.10 Intrepid Ibex

    Question howto "creating Konqueror Service Menus" ?

    Hi,

    I'm trying to create a service menu out of this command
    Code:
    find . -iname "Thumbs.db" -execdir rm {} \; && find . -iname "Desktop.ini" -execdir rm {} \;
    At http://developer.kde.org/documentati...vicemenus.html they say this
    If you have a complex task that requires more than one command (for example if we wanted to copy the image file somewhere first and then use dcop to set it as the background) use a shell:

    Exec=/bin/sh -c "<YOUR COMMANDS HERE>"
    but I didn't manage to get it to work, please guide me

    --
    This is what I have, the first 2 work, but the last one not
    Code:
    Desktop Entry]
    ServiceTypes=inode/directory
    Actions=Remove_Desktop.ini;Remove_Thumbs.db;Remove_Windows_files;
    Encoding=UTF-8
    
    [Desktop Action Remove_Desktop.ini]
    Name=Remove Desktop ini files!
    Icon=
    Exec=find %U -iname "Desktop.ini" -execdir rm {} \;
    
    [Desktop Action Remove_Thumbs.db]
    Name=Remove Thumbs db files!
    Icon=
    Exec=find %U -iname "Thumbs.db" -execdir rm {} \;
    
    [Desktop Action Remove_Windows_files]
    Name=Remove windows files!
    Icon=
    Exec=/bin/sh -c "find %U -iname "Thumbs.db" -execdir rm {} \; && find %U -iname "Desktop.ini" -execdir rm {} \;"

  2. #2
    Join Date
    Oct 2005
    Beans
    660

Bookmarks

Posting Permissions

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