diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-09-22 11:25:01 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-09-22 11:25:01 -0400 |
commit | be43649a03543857c4af855d62540ca900f202e2 (patch) | |
tree | a7a03eefb93468bfd7e586cfde9d020965293e51 /Utility | |
parent | b754146eafade95039417bb54be94d945d9cdfb3 (diff) |
use takeDirectory instead of parentDir
No need for a trailing slash in the directory here, so avoid pulling in an
extra module.
Diffstat (limited to 'Utility')
-rw-r--r-- | Utility/FreeDesktop.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Utility/FreeDesktop.hs b/Utility/FreeDesktop.hs index 49cee0aff..67f6219bd 100644 --- a/Utility/FreeDesktop.hs +++ b/Utility/FreeDesktop.hs @@ -29,7 +29,6 @@ module Utility.FreeDesktop ( ) where import Utility.Exception -import Utility.Path import Utility.UserInfo import Utility.Process import Utility.PartialPrelude @@ -82,7 +81,7 @@ buildDesktopMenuFile d = unlines ("[Desktop Entry]" : map keyvalue d) ++ "\n" writeDesktopMenuFile :: DesktopEntry -> String -> IO () writeDesktopMenuFile d file = do - createDirectoryIfMissing True (parentDir file) + createDirectoryIfMissing True (takeDirectory file) writeFile file $ buildDesktopMenuFile d {- Path to use for a desktop menu file, in either the systemDataDir or |