summaryrefslogtreecommitdiff
path: root/Build/InstallDesktopFile.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-09-06 13:06:44 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-09-06 13:06:44 -0400
commitb3df6b1736062ae4cd3c3049841ac28eaed56dc7 (patch)
treedac9bbd1020e43cd6c647b040afef0e220f20ab6 /Build/InstallDesktopFile.hs
parent426d536705fb8773d86e3679add83506be2e713b (diff)
make directory
Diffstat (limited to 'Build/InstallDesktopFile.hs')
-rw-r--r--Build/InstallDesktopFile.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Build/InstallDesktopFile.hs b/Build/InstallDesktopFile.hs
index c8ad9f759..d248dc20f 100644
--- a/Build/InstallDesktopFile.hs
+++ b/Build/InstallDesktopFile.hs
@@ -74,6 +74,7 @@ writeOSXDesktop command = do
home <- myHomeDir
let base = "Library" </> "LaunchAgents" </> label ++ ".plist"
autostart <- ifM isRoot ( inDestDir $ "/" </> base , inDestDir $ home </> base)
+ createDirectoryIfMissing True (parentDir autostart)
writeFile autostart $ unlines
[ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
, "<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">"