fix build on OSX
This commit is contained in:
parent
c6604406b9
commit
278c672141
1 changed files with 2 additions and 1 deletions
|
@ -15,12 +15,13 @@ import Utility.FreeDesktop
|
||||||
import Utility.OSX
|
import Utility.OSX
|
||||||
import Utility.Path
|
import Utility.Path
|
||||||
import Utility.Directory
|
import Utility.Directory
|
||||||
|
import Utility.FileSystemEncoding
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
installAutoStart :: FilePath -> FilePath -> IO ()
|
installAutoStart :: FilePath -> FilePath -> IO ()
|
||||||
installAutoStart command file = do
|
installAutoStart command file = do
|
||||||
#ifdef darwin_HOST_OS
|
#ifdef darwin_HOST_OS
|
||||||
createDirectoryIfMissing True (parentDir file)
|
createDirectoryIfMissing True (fromRawFilePath (parentDir file))
|
||||||
writeFile file $ genOSXAutoStartFile osxAutoStartLabel command
|
writeFile file $ genOSXAutoStartFile osxAutoStartLabel command
|
||||||
["assistant", "--autostart"]
|
["assistant", "--autostart"]
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue