make directory
This commit is contained in:
parent
426d536705
commit
b3df6b1736
1 changed files with 1 additions and 0 deletions
|
@ -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\">"
|
||||
|
|
Loading…
Reference in a new issue