diff --git a/Build/InstallDesktopFile.hs b/Build/InstallDesktopFile.hs index c8ad9f7598..d248dc20f9 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 [ "" , ""