summaryrefslogtreecommitdiff
path: root/Build/InstallDesktopFile.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-09-06 13:04:26 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-09-06 13:04:26 -0400
commit426d536705fb8773d86e3679add83506be2e713b (patch)
tree870422f07886b6029495889a31023eb2f4c8145d /Build/InstallDesktopFile.hs
parentae00577a453923e85ba195c869c3cceddeea9cfc (diff)
honor destdir for osx too
Diffstat (limited to 'Build/InstallDesktopFile.hs')
-rw-r--r--Build/InstallDesktopFile.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/InstallDesktopFile.hs b/Build/InstallDesktopFile.hs
index 31771f633..c8ad9f759 100644
--- a/Build/InstallDesktopFile.hs
+++ b/Build/InstallDesktopFile.hs
@@ -73,7 +73,7 @@ writeOSXDesktop :: FilePath -> IO ()
writeOSXDesktop command = do
home <- myHomeDir
let base = "Library" </> "LaunchAgents" </> label ++ ".plist"
- autostart <- ifM isRoot ( return $ "/" </> base , return $ home </> base)
+ autostart <- ifM isRoot ( inDestDir $ "/" </> base , inDestDir $ home </> base)
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\">"