Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support MPRIS through the Basu library (drop-in replacement for elogind/systemd sd-bus) #1133

Closed
capezotte opened this issue Oct 31, 2021 · 0 comments · Fixed by #1221
Closed

Comments

@capezotte
Copy link
Contributor

basu is a standalone version of the sd-bus library that isn't attached to any service or login manager, made by the Sway developers.

I've successfully compiled and run cmus with it by using the following two-line patch:

diff --git a/configure b/configure
index 4627126..37b8437 100755
--- a/configure
+++ b/configure
@@ -289,7 +289,7 @@ check_vorbis()
 
 check_libsystemd()
 {
-	pkg_config LIBSYSTEMD "libsystemd" || pkg_config LIBSYSTEMD "libelogind >= 239.3"
+	pkg_config LIBSYSTEMD "libsystemd" || pkg_config LIBSYSTEMD "libelogind >= 239.3" || pkg_config LIBSYSTEMD "basu"
 	return $?
 }
 
diff --git a/mpris.c b/mpris.c
index 0699b0c..2cd6b40 100644
--- a/mpris.c
+++ b/mpris.c
@@ -15,7 +15,7 @@
  * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <systemd/sd-bus.h>
+#include <basu/sd-bus.h>
 
 #include "mpris.h"
 #include "ui_curses.h"

I'd like to see it officially supported, though I do recognize Basu's avoidance of "claiming" /usr/include/systemd might require some changes to the build system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant