summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
Diffstat (limited to 'Build')
-rw-r--r--Build/InstallDesktopFile.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Build/InstallDesktopFile.hs b/Build/InstallDesktopFile.hs
index a08743f3d..3bc796315 100644
--- a/Build/InstallDesktopFile.hs
+++ b/Build/InstallDesktopFile.hs
@@ -46,6 +46,10 @@ writeDesktop command = do
writeDesktopMenuFile (autostart command) $
autoStartPath "git-annex" configdir
+ programfile <- programFile
+ createDirectoryIfMissing True (parentDir programFile)
+ writeFile programfile command
+
main = getArgs >>= go
where
go [] = error "specify git-annex command"