@@ -0,0 +1,34 @@
1+From 8fd84b4d6ba257ac93a61bce3378777840e8bf80 Mon Sep 17 00:00:00 2001
2+From: Nikolay Amiantov <ab@fmap.me>
3+Date: Sat, 5 Nov 2016 14:27:04 +0300
4+Subject: [PATCH] getSessionAddress: take first bus address from
5+ semicolon-separated variable
6+
7+---
8+ lib/DBus/Address.hs | 3 ++-
9+ 1 file changed, 2 insertions(+), 1 deletion(-)
10+
11+diff --git a/lib/DBus/Address.hs b/lib/DBus/Address.hs
12+index 72ac99d..596b18c 100644
13+--- a/lib/DBus/Address.hs
14++++ b/lib/DBus/Address.hs
15+@@ -18,6 +18,7 @@ module DBus.Address where
16+ import qualified Control.Exception
17+ import Data.Char (digitToInt, ord, chr)
18+ import Data.List (intercalate)
19++import Data.Maybe (listToMaybe)
20+ import qualified Data.Map
21+ import Data.Map (Map)
22+ import qualified System.Environment
23+@@ -152,7 +153,7 @@ getSystemAddress = do
24+ getSessionAddress :: IO (Maybe Address)
25+ getSessionAddress = do
26+ env <- getenv "DBUS_SESSION_BUS_ADDRESS"
27+- return (env >>= parseAddress)
28++ return $ maybe Nothing listToMaybe (env >>= parseAddresses)
29+
30+ -- | Returns the address in the environment variable
31+ -- @DBUS_STARTER_ADDRESS@, which must be set.
32+--
33+2.10.1
34+