use passed program name for kde hooks
This commit is contained in:
parent
8aa4cfdc91
commit
4f9a29e7f6
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue