Install FDO desktop menu file when webapp is started in standalone mode.
This commit is contained in:
parent
0d723e736e
commit
d2e92e2494
3 changed files with 4 additions and 18 deletions
|
@ -11,6 +11,7 @@ module Assistant.Install where
|
||||||
|
|
||||||
import Assistant.Common
|
import Assistant.Common
|
||||||
import Assistant.Install.AutoStart
|
import Assistant.Install.AutoStart
|
||||||
|
import Assistant.Install.Menu
|
||||||
import Assistant.Ssh
|
import Assistant.Ssh
|
||||||
import Locations.UserConfig
|
import Locations.UserConfig
|
||||||
import Utility.FileMode
|
import Utility.FileMode
|
||||||
|
@ -49,6 +50,8 @@ ensureInstalled = go =<< standaloneAppBase
|
||||||
#ifdef darwin_HOST_OS
|
#ifdef darwin_HOST_OS
|
||||||
autostartfile <- userAutoStart osxAutoStartLabel
|
autostartfile <- userAutoStart osxAutoStartLabel
|
||||||
#else
|
#else
|
||||||
|
installMenu program
|
||||||
|
=<< desktopMenuFilePath "git-annex" <$> userConfigDir
|
||||||
autostartfile <- autoStartPath "git-annex" <$> userConfigDir
|
autostartfile <- autoStartPath "git-annex" <$> userConfigDir
|
||||||
#endif
|
#endif
|
||||||
installAutoStart program autostartfile
|
installAutoStart program autostartfile
|
||||||
|
|
|
@ -26,24 +26,6 @@ import System.Posix.Files
|
||||||
import System.FilePath
|
import System.FilePath
|
||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
|
|
||||||
{- The command can be either just "git-annex", or the full path to use
|
|
||||||
- to run it. -}
|
|
||||||
desktop :: FilePath -> DesktopEntry
|
|
||||||
desktop command = genDesktopEntry
|
|
||||||
"Git Annex"
|
|
||||||
"Track and sync the files in your Git Annex"
|
|
||||||
False
|
|
||||||
(command ++ " webapp")
|
|
||||||
["Network", "FileTransfer"]
|
|
||||||
|
|
||||||
autostart :: FilePath -> DesktopEntry
|
|
||||||
autostart command = genDesktopEntry
|
|
||||||
"Git Annex Assistant"
|
|
||||||
"Autostart"
|
|
||||||
False
|
|
||||||
(command ++ " assistant --autostart")
|
|
||||||
[]
|
|
||||||
|
|
||||||
systemwideInstall :: IO Bool
|
systemwideInstall :: IO Bool
|
||||||
systemwideInstall = isroot <||> destdirset
|
systemwideInstall = isroot <||> destdirset
|
||||||
where
|
where
|
||||||
|
|
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -2,6 +2,7 @@ git-annex (4.20130418) UNRELEASED; urgency=low
|
||||||
|
|
||||||
* assistant: Work around misfeature in git 1.8.2 that makes
|
* assistant: Work around misfeature in git 1.8.2 that makes
|
||||||
`git commit --alow-empty -m ""` run an editor.
|
`git commit --alow-empty -m ""` run an editor.
|
||||||
|
* Install FDO desktop menu file when webapp is started in standalone mode.
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Thu, 18 Apr 2013 16:22:48 -0400
|
-- Joey Hess <joeyh@debian.org> Thu, 18 Apr 2013 16:22:48 -0400
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue