xmonad-spotify 0.1.2.1 → 0.1.2.2
raw patch · 3 files changed
+5/−5 lines, 3 files
Files
- CHANGELOG.md +1/−1
- src/XMonad/Util/Spotify.hs +3/−3
- xmonad-spotify.cabal +1/−1
CHANGELOG.md view
@@ -1,6 +1,6 @@ # xmonad-spotify -## 0.1.2.1+## 0.1.2.2 * Bug fix
src/XMonad/Util/Spotify.hs view
@@ -49,12 +49,12 @@ spWith :: MonadIO m => Client -> String -> m () spWith client str = void $ liftIO $ call_ client (methodCall (objectPath_ "/org/mpris/MediaPlayer2") (interfaceName_ "org.mpris.MediaPlayer2.Player") (memberName_ str))+ { methodCallDestination = Just (busName_ "org.mpris.MediaPlayer2.spotify") } --- FIXME: don't connect one session each time? sp :: MonadIO m => String -> m ()-sp str = liftIO $ do+sp str = do client <- liftIO connectSession- _ <- call_ client (methodCall (objectPath_ "/org/mpris/MediaPlayer2") (interfaceName_ "org.mpris.MediaPlayer2.Player") (memberName_ str))+ spWith client str liftIO $ disconnect client -- | @since 0.1.2.0
xmonad-spotify.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.18 name: xmonad-spotify-version: 0.1.2.1+version: 0.1.2.2 license: BSD3 license-file: LICENSE copyright: Copyright: (c) 2018-2019 Vanessa McHale