propellor 4.3.1 → 4.3.2
raw patch · 4 files changed
+43/−1 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Propellor.Property.FreeDesktop: autostart :: FilePath -> Name -> Exec -> RevertableProperty UnixLike UnixLike
+ Propellor.Property.FreeDesktop: desktopFile :: String -> FilePath
+ Propellor.Property.FreeDesktop: type Exec = String
+ Propellor.Property.FreeDesktop: type Name = String
Files
- CHANGELOG +6/−0
- debian/changelog +6/−0
- propellor.cabal +2/−1
- src/Propellor/Property/FreeDesktop.hs +29/−0
CHANGELOG view
@@ -1,3 +1,9 @@+propellor (4.3.2) unstable; urgency=medium++ * Really include Propellor.Property.FreeDesktop.++ -- Joey Hess <id@joeyh.name> Thu, 06 Jul 2017 17:28:53 -0400+ propellor (4.3.1) unstable; urgency=medium * Added Propellor.Property.FreeDesktop module.
debian/changelog view
@@ -1,3 +1,9 @@+propellor (4.3.2) unstable; urgency=medium++ * Really include Propellor.Property.FreeDesktop.++ -- Joey Hess <id@joeyh.name> Thu, 06 Jul 2017 17:28:53 -0400+ propellor (4.3.1) unstable; urgency=medium * Added Propellor.Property.FreeDesktop module.
propellor.cabal view
@@ -1,5 +1,5 @@ Name: propellor-Version: 4.3.1+Version: 4.3.2 Cabal-Version: >= 1.20 License: BSD2 Maintainer: Joey Hess <id@joeyh.name>@@ -114,6 +114,7 @@ Propellor.Property.FreeBSD Propellor.Property.FreeBSD.Pkg Propellor.Property.FreeBSD.Poudriere+ Propellor.Property.FreeDesktop Propellor.Property.Fstab Propellor.Property.Git Propellor.Property.Gpg
+ src/Propellor/Property/FreeDesktop.hs view
@@ -0,0 +1,29 @@+-- | Freedesktop.org configuration file properties.++module Propellor.Property.FreeDesktop where++import Propellor.Base+import Propellor.Property.ConfFile++desktopFile :: String -> FilePath+desktopFile s = s ++ ".desktop"++-- | Name used in a desktop file; user visible. +type Name = String++-- | Command that a dekstop file runs. May include parameters.+type Exec = String++-- | Specifies an autostart file. By default it will be located in the+-- system-wide autostart directory.+autostart :: FilePath -> Name -> Exec -> RevertableProperty UnixLike UnixLike+autostart f n e = ("/etc/xdg/autostart" </> f) `iniFileContains` + [ ("Desktop Entry",+ [ ("Type", "Application")+ , ("Version", "1.0")+ , ("Name", n)+ , ("Comment", "Autostart")+ , ("Terminal", "False")+ , ("Exec", e)+ ] )+ ]