Fix nautilus script installation to not crash when the nautilus script dir does not exist. Instead, only install scripts when the directory already exists.
nautilus creates this directory each time run, so this avoids putting cruft in user's home
This commit is contained in:
parent
66f7354dae
commit
ade5d8ccc5
2 changed files with 6 additions and 2 deletions
|
@ -87,8 +87,9 @@ installNautilus :: FilePath -> IO ()
|
|||
#ifdef linux_HOST_OS
|
||||
installNautilus program = do
|
||||
scriptdir <- (\d -> d </> "nautilus" </> "scripts") <$> userDataDir
|
||||
genscript scriptdir "get"
|
||||
genscript scriptdir "drop"
|
||||
whenM (doesDirectoryExist scriptdir) $ do
|
||||
genscript scriptdir "get"
|
||||
genscript scriptdir "drop"
|
||||
where
|
||||
genscript scriptdir action =
|
||||
installscript (scriptdir </> scriptname action) $ unlines
|
||||
|
|
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -2,6 +2,9 @@ git-annex (5.20140403) UNRELEASED; urgency=medium
|
|||
|
||||
* git-annex-shell: Added notifychanges command.
|
||||
* Improve display of dbus notifications. Thanks, Johan Kiviniemi.
|
||||
* Fix nautilus script installation to not crash when the nautilus script dir
|
||||
does not exist. Instead, only install scripts when the directory already
|
||||
exists.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Sat, 05 Apr 2014 15:05:44 -0400
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue