summaryrefslogtreecommitdiff
path: root/Setup.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-11-03 10:38:08 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-11-03 10:38:08 -0400
commit94b7c09a14f4f554fda6fc2c7fce65d64246344a (patch)
tree07950c656b4d544cb9074239435a3c24bf5d622d /Setup.hs
parent3a19893f0041eb716cdc3eb61278d17eebd49839 (diff)
Avoid installing desktop file and program file if cabal install git-annex is run as root, since that is not a systemwide install, but to /root, and so generating a systemwide desktop file is not right.
Diffstat (limited to 'Setup.hs')
-rw-r--r--Setup.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Setup.hs b/Setup.hs
index f0c9fb4eb..a3c1f1cf6 100644
--- a/Setup.hs
+++ b/Setup.hs
@@ -64,7 +64,7 @@ installManpages copyDest verbosity pkg lbi =
installDesktopFile :: CopyDest -> Verbosity -> PackageDescription -> LocalBuildInfo -> IO ()
installDesktopFile copyDest _verbosity pkg lbi
| progfile copyDest == progfile NoCopyDest =
- DesktopFile.install (progfile copyDest)
+ DesktopFile.installUser (progfile copyDest)
| otherwise = return ()
where
progfile cd = bindir (absoluteInstallDirs pkg lbi cd) </> "git-annex"