summaryrefslogtreecommitdiff
path: root/Config
diff options
context:
space:
mode:
Diffstat (limited to 'Config')
-rw-r--r--Config/Files.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Config/Files.hs b/Config/Files.hs
index 23564c2df..3db2bb74c 100644
--- a/Config/Files.hs
+++ b/Config/Files.hs
@@ -36,7 +36,9 @@ modifyAutoStartFile func = do
createDirectoryIfMissing True (parentDir f)
viaTmp writeFile f $ unlines $ dirs'
-{- Adds a directory to the autostart file. -}
+{- Adds a directory to the autostart file. If the directory is already
+ - present, it's moved to the top, so it will be used as the default
+ - when opening the webapp. -}
addAutoStartFile :: FilePath -> IO ()
addAutoStartFile path = modifyAutoStartFile $ (:) path