diff options
author | Joey Hess <joey@kitenet.net> | 2014-03-22 10:42:38 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-03-22 14:12:19 -0400 |
commit | 35419994e9418444dc82e5c90c579203cc4c3616 (patch) | |
tree | 0d4374fbc7f233cfa409e9e142b36f00d12f71f4 /Annex.hs | |
parent | f2a5858f85f1d6e999d707f4b48cd2ea643197bc (diff) |
add desktop notifications
Motivation: Hook scripts for nautilus or other file managers
need to provide the user with feedback that a file is being downloaded.
This commit was sponsored by THM Schoemaker.
Diffstat (limited to 'Annex.hs')
-rw-r--r-- | Annex.hs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -60,6 +60,7 @@ import Types.FileMatcher import Types.NumCopies import Types.LockPool import Types.MetaData +import Types.DesktopNotify import Types.CleanupActions import qualified Utility.Matcher import qualified Data.Map as M @@ -122,6 +123,7 @@ data AnnexState = AnnexState , unusedkeys :: Maybe (S.Set Key) , quviversion :: Maybe QuviVersion , existinghooks :: M.Map Git.Hook.Hook Bool + , desktopnotify :: DesktopNotify } newState :: GitConfig -> Git.Repo -> AnnexState @@ -163,6 +165,7 @@ newState c r = AnnexState , unusedkeys = Nothing , quviversion = Nothing , existinghooks = M.empty + , desktopnotify = mempty } {- Makes an Annex state object for the specified git repo. |