fix build on OSX more

This commit is contained in:
Joey Hess 2020-11-11 08:51:09 -04:00
parent adcf95f3f2
commit 326587a7d1
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -21,7 +21,7 @@ import Utility.FileSystemEncoding
installAutoStart :: FilePath -> FilePath -> IO ()
installAutoStart command file = do
#ifdef darwin_HOST_OS
createDirectoryIfMissing True (fromRawFilePath (parentDir file))
createDirectoryIfMissing True (fromRawFilePath (parentDir (toRawFilePath file)))
writeFile file $ genOSXAutoStartFile osxAutoStartLabel command
["assistant", "--autostart"]
#else