use passed program name for kde hooks

This commit is contained in:
Joey Hess 2014-07-21 15:30:40 -04:00
parent 8aa4cfdc91
commit 4f9a29e7f6

View file

@ -140,7 +140,12 @@ installFileManagerHooks program = do
, "[Desktop Action " ++ kdeDesktopSection command ++ "]"
, "Name=" ++ command
, "Icon=git-annex"
, "Exec=sh -c 'cd \"$(dirname '%U')\" && git-annex " ++ command ++ " --notify-start --notify-finish -- %U'"
, unwords
[ "Exec=sh -c 'cd \"$(dirname '%U')\" &&"
, program
, command
, "--notify-start --notify-finish -- %U'"
]
]
#else
installFileManagerHooks _ = noop