Improve integration with KDE's file manager to work with dolphin version 14.12.3 while still being compatable with 4.14.2. Thanks, silvio.

This commit is contained in:
Joey Hess 2015-04-29 15:53:16 -04:00
parent 9d745434f9
commit 995643665a
4 changed files with 20 additions and 2 deletions

View file

@ -145,10 +145,12 @@ installFileManagerHooks program = do
, "Name=" ++ command
, "Icon=git-annex"
, unwords
[ "Exec=sh -c 'cd \"$(dirname '%U')\" &&"
[ "Exec=sh -c 'cd \"$(dirname \"$1\")\" &&"
, program
, command
, "--notify-start --notify-finish -- %U'"
, "--notify-start --notify-finish -- \"$1\"'"
, "false" -- this becomes $0 in sh, so unused
, "%f"
]
]
#else