From owner-freebsd-desktop@freebsd.org Sun Jul 26 12:10:42 2020 Return-Path: Delivered-To: freebsd-desktop@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7A9943A625B for ; Sun, 26 Jul 2020 12:10:42 +0000 (UTC) (envelope-from tcberner@gmail.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BF1wy1zWVz4Vhg for ; Sun, 26 Jul 2020 12:10:42 +0000 (UTC) (envelope-from tcberner@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 43E673A625A; Sun, 26 Jul 2020 12:10:42 +0000 (UTC) Delivered-To: desktop@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 43A793A6664 for ; Sun, 26 Jul 2020 12:10:42 +0000 (UTC) (envelope-from tcberner@gmail.com) Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BF1wx0T2Nz4VMw for ; Sun, 26 Jul 2020 12:10:40 +0000 (UTC) (envelope-from tcberner@gmail.com) Received: by mail-qk1-f176.google.com with SMTP id 2so8721296qkf.10 for ; Sun, 26 Jul 2020 05:10:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7Ff6+fTwi0KL2QGtc8q8awlowZc6gzufT5UxZSmQ5d4=; b=JCvs9221DY0S9qThdpoBgJ5eP9+ptlNZYq1fbhY75L+6Vg+bc1IPLjSVqI4oM1m/fq t1tswqUEGdlkS1ewFbvCdquh6Tw6o/QR7oFP8osY6/n1OKC269ZDUwbrXQ4t6MYMWQcq a+LhdkDldIpy5s9QQLlVqJR88JZMu7o2DENQkiX9hsI3dP0yRB2LHQBe9jhd/zCFB822 cke/KEJP8Udsb1feUjmiD7CdQMu0XZvCHTQNRniRssAa1CFzLVK9shxs6VQ+HPNzGt3y yRPLW8MeX27BXMZZkzqJx7AZQcEuVvG9mmz6PF7RCr8GcSDNusL9lQePzCWLuRlndeqa ChDQ== X-Gm-Message-State: AOAM532Vlb28Eq/Uq/Lwb85A++sMmwC3sURnqChTcKbXsl0Mqc8Vzf9s SOIJiF7oNw4qFlAy47O+Uzi5KGfm1ps= X-Google-Smtp-Source: ABdhPJwxVay/VB99LJwtxBM9+p1JdTSofNMKGn/5hCPes/OkAeeKMNPwYdpLSl22fH6Ynk9ZZZbDMA== X-Received: by 2002:a05:620a:15e8:: with SMTP id p8mr18250452qkm.182.1595765440038; Sun, 26 Jul 2020 05:10:40 -0700 (PDT) Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com. [209.85.222.182]) by smtp.gmail.com with ESMTPSA id z72sm15214391qka.107.2020.07.26.05.10.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 26 Jul 2020 05:10:39 -0700 (PDT) Received: by mail-qk1-f182.google.com with SMTP id b79so12810426qkg.9 for ; Sun, 26 Jul 2020 05:10:39 -0700 (PDT) X-Received: by 2002:a05:620a:414e:: with SMTP id k14mr9842102qko.374.1595765439593; Sun, 26 Jul 2020 05:10:39 -0700 (PDT) MIME-Version: 1.0 References: <74be5094-3610-49c6-b6b2-5d0272828078@gmail.com> In-Reply-To: <74be5094-3610-49c6-b6b2-5d0272828078@gmail.com> From: "Tobias C. Berner" Date: Sun, 26 Jul 2020 14:10:28 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: butt and dbus feature (just curious) To: Per Gunnarsson Cc: desktop@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4BF1wx0T2Nz4VMw X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of tcberner@gmail.com designates 209.85.222.176 as permitted sender) smtp.mailfrom=tcberner@gmail.com X-Spamd-Result: default: False [-1.99 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; NEURAL_HAM_LONG(-0.93)[-0.925]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[desktop@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.36)[-0.363]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[209.85.222.176:from]; NEURAL_HAM_MEDIUM(-0.70)[-0.699]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[tcberner@freebsd.org,tcberner@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.222.176:from]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[tcberner@freebsd.org,tcberner@gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com] X-BeenThere: freebsd-desktop@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Using and improving FreeBSD on the desktop List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jul 2020 12:10:42 -0000 Moin moin Looking at the code, you'll also need to patch fl_funcs.cpp on Line 150: #elif (__linux__ || __FreeBSD__) && HAVE_DBUS That way the dropdown in the application will get populated with the player it knows about. mfg Tobias On Sun, 26 Jul 2020 at 09:58, Per Gunnarsson wrote: > > Hello! > > I have been trying to port butt (broadcast using this tool by Daniel > Noethen) to FreeBSD. > > It's a live streamer for icecast, and there is a feature in the > application which works on Linux which I have failed to get working on > FreeBSD. > > The feature I am trying to get working is that the application picks up > metadata (artist name and song name) from a media player and forwards it > to the icecast server. > > This is somehow done by dbus. > > When I compile butt on FreeBSD, configure seens to find dbus and > compiles, but the application doesn't seem to find any mpris connected > media players. > > Do you think I can get away with just adjusting som flags or do I have > to learn serious programming to get it working? > > from configure.ac: > > #Add dbus library for Linux > if test "$build_linux" = "yes"; then > AC_MSG_NOTICE([]) > PKG_CHECK_MODULES([DBUS], [dbus-1], [ > AC_DEFINE([HAVE_DBUS], [1], [Use dbus to get current > tracks]) > LIBS="$LIBS $DBUS_LIBS" > CFLAGS="$CFLAGS $LIBS $DBUS_CFLAGS" > CXXFLAGS="$CXXFLAGS $DBUS_CFLAGS" > ], [ > AC_DEFINE([HAVE_DBUS], [0], [Use dbus to get current > tracks]) > AC_MSG_ERROR([**** Coud not find dbus dev files]) > ]) > fi > > > #Add dbus library for FreeBSD (just copied and pasted from linux in > order to make things compile) > > if test "$build_freebsd" = "yes"; then > AC_MSG_NOTICE([]) > PKG_CHECK_MODULES([DBUS], [dbus-1], [ > AC_DEFINE([HAVE_DBUS], [1], [Use dbus to get current > tracks]) > LIBS="$LIBS $DBUS_LIBS" > CFLAGS="$CFLAGS $LIBS $DBUS_CFLAGS" > CXXFLAGS="$CXXFLAGS $DBUS_CFLAGS" > ], [ > AC_DEFINE([HAVE_DBUS], [0], [Use dbus to get current > tracks]) > AC_MSG_ERROR([**** Coud not find dbus dev files]) > ]) > fi > > Do I have to play around with src/currentTrack.h and create a > src/currentTrackFreeBSD.cpp too? > > Regards, > > Per Gunnarsson > _______________________________________________ > freebsd-desktop@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-desktop > To unsubscribe, send any mail to "freebsd-desktop-unsubscribe@freebsd.org"