summaryrefslogtreecommitdiff
path: root/Build/InstallDesktopFile.hs
diff options
context:
space:
mode:
authorGravatar Nicolas Pouillard <nicolas.pouillard@gmail.com>2012-08-02 20:11:41 +0200
committerGravatar Nicolas Pouillard <nicolas.pouillard@gmail.com>2012-08-02 20:11:41 +0200
commite11946796d05a733290a47e9cead0b2a2e58d272 (patch)
treef6a8e5faca6b38de0f67bd8880acf9b533b3e25f /Build/InstallDesktopFile.hs
parent6b38227bad8c303470a5b29f50360cea0206d9a1 (diff)
Fix imports and casing in Build.InstallDesktopFile
Diffstat (limited to 'Build/InstallDesktopFile.hs')
-rw-r--r--Build/InstallDesktopFile.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Build/InstallDesktopFile.hs b/Build/InstallDesktopFile.hs
index ab2773bf1..891431ebe 100644
--- a/Build/InstallDesktopFile.hs
+++ b/Build/InstallDesktopFile.hs
@@ -10,8 +10,12 @@ module Build.InstallDesktopFile where
import Utility.Exception
import Utility.FreeDesktop
+import Utility.Path
+import Locations.UserConfig
import Control.Applicative
+import Control.Monad
+import System.Directory
import System.Environment
import System.Posix.User
@@ -48,7 +52,7 @@ writeDesktop command = do
when (uid /= 0) $ do
programfile <- programFile
- createDirectoryIfMissing True (parentDir programFile)
+ createDirectoryIfMissing True (parentDir programfile)
writeFile programfile command
main = getArgs >>= go