Announcement

Collapse
No announcement yet.

Service Menus vs. some code again...

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

    Service Menus vs. some code again...

    On a quest to solve a new issue: A new Linux user wants a Windows file manager feature - the ability to un-hide a directory full of hidden files from the file manager. So I thought, we should be able to do that.

    This means I need to find a command to do the un-hiding, then be able to run it from a Service Menu in Dolphin.

    So these commands works at the command line:

    Code:
    find . -maxdepth 1 -type f -or -type d -iname '.*' -exec rename "s/^.//g" '.*' '{}' \;
    find path/ -maxdepth 1 -type f -or -type d -iname '.*' -exec rename "s/^.//g" '.*' '{}' \;
    So I put it in a Service Menu like this:
    Code:
    Exec=find %u -maxdepth 1 -type f -or -type d -iname '.*' -exec rename "s/^.//g" '.*' '{}' \;
    and this does nothing. No errors, but no action. Seems it may have to do with the %u but I've tried %f, %F, %U, and none work.

    I have tried calling the command an executable file, but haven't been successful there either. I guessing it's the path names getting in the way.

    Please Read Me

    #2
    Hey oshunluvr

    Whai if you put the code in a script and call it from the service menu?

    Good luck

    Vektor

    Comment


    • oshunluvr
      oshunluvr commented
      Editing a comment
      Yeah, that's what I'm going to try next. Thanks!
Working...
X