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 ++ "]"
|
, "[Desktop Action " ++ kdeDesktopSection command ++ "]"
|
||||||
, "Name=" ++ command
|
, "Name=" ++ command
|
||||||
, "Icon=git-annex"
|
, "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
|
#else
|
||||||
installFileManagerHooks _ = noop
|
installFileManagerHooks _ = noop
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue