honor destdir for osx too
This commit is contained in:
parent
ae00577a45
commit
426d536705
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ writeOSXDesktop :: FilePath -> IO ()
|
||||||
writeOSXDesktop command = do
|
writeOSXDesktop command = do
|
||||||
home <- myHomeDir
|
home <- myHomeDir
|
||||||
let base = "Library" </> "LaunchAgents" </> label ++ ".plist"
|
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
|
writeFile autostart $ unlines
|
||||||
[ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
|
[ "<?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\">"
|
, "<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">"
|
||||||
|
|
Loading…
Add table
Reference in a new issue