Skip to content

Commit

Permalink
Introduce basu as an option for MPRIS control
Browse files Browse the repository at this point in the history
  • Loading branch information
capezotte authored and flyingmutant committed Jul 8, 2023
1 parent 07ce2dc commit 7d31169
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,9 @@ 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" && CFLAGS="${CFLAGS} -DCONFIG_MPRIS_BASU"
}
return $?
}

Expand Down
4 changes: 4 additions & 0 deletions mpris.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

#ifdef CONFIG_MPRIS_BASU
#include <basu/sd-bus.h>
#else
#include <systemd/sd-bus.h>
#endif

#include "mpris.h"
#include "ui_curses.h"
Expand Down

0 comments on commit 7d31169

Please sign in to comment.