Fix imports and casing in Build.InstallDesktopFile
This commit is contained in:
parent
6b38227bad
commit
e11946796d
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue