From patchwork Sun Mar 29 10:12:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brendan Tildesley X-Patchwork-Id: 20962 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 97F6027BBE4; Mon, 30 Mar 2020 09:28:01 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 6957F27BBE1 for ; Mon, 30 Mar 2020 09:28:01 +0100 (BST) Received: from localhost ([::1]:46366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIpm5-00017K-0e for patchwork@mira.cbaines.net; Mon, 30 Mar 2020 04:28:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54754) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIkHk-0003Kk-2T for guix-patches@gnu.org; Sun, 29 Mar 2020 22:36:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIkHj-0003Pv-28 for guix-patches@gnu.org; Sun, 29 Mar 2020 22:36:19 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48621) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jIkHi-0003Pk-Uk for guix-patches@gnu.org; Sun, 29 Mar 2020 22:36:19 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jIkHi-0004fW-Sf for guix-patches@gnu.org; Sun, 29 Mar 2020 22:36:18 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40312] [PATCH 0/3]: Add Piper and libratbag Resent-From: Brendan Tildesley Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 30 Mar 2020 02:36:18 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40312 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40312@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158553573617462 (code B ref -1); Mon, 30 Mar 2020 02:36:18 +0000 Received: (at submit) by debbugs.gnu.org; 30 Mar 2020 02:35:36 +0000 Received: from lists.gnu.org ([209.51.188.17]:47273) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIUvs-0001Y8-51 for submit@debbugs.gnu.org; Sun, 29 Mar 2020 06:12:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38544) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIUvq-0001mj-V3 for guix-patches@gnu.org; Sun, 29 Mar 2020 06:12:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIUvn-00084k-R2 for guix-patches@gnu.org; Sun, 29 Mar 2020 06:12:41 -0400 Received: from mout-p-202.mailbox.org ([2001:67c:2050::465:202]:42328) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jIUvm-00082v-Nm for guix-patches@gnu.org; Sun, 29 Mar 2020 06:12:39 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 48qrxZ41q7zQlGM for ; Sun, 29 Mar 2020 12:12:34 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brendan.scot; s=MBO0001; t=1585476752; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FK/6wLUP6e50q9+0MaMqeHXsLL6J+ciMMFR/PZOLKjA=; b=lAuv2bXnoQ8N/LGlzUH+lYTYunevSCkpuyx2qMaVNMSHJA8tDG6HS/kSAaatgSBg9x9Kjd 8XCT/BnER4MKyDP9xZPZb5VXBsXuUdvjE7A3CUwk5yoKzi0q2/ni92diRlpsROOrtTrG5K OPLsMZONa2EEcxEUQtORyqbomub1eJe7+HBTNU68RyXCAP6wDIAonaOcPCQ97YWgBxiioF AYTO4/IBqViqhScSnxFxr6UVHRv5LYZ8I21svYnF3SwlahDtJgnpH2bm5V9wcTqQkiIcvu C4zmqOtUqeEguQ/mJ8uGqNY4eJVndk1TPEifeNbJ9sRogZZ9Bh/4iRnfzljOng== Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter06.heinlein-hosting.de (spamfilter06.heinlein-hosting.de [80.241.56.125]) (amavisd-new, port 10030) with ESMTP id qocQbKlvo9Ek for ; Sun, 29 Mar 2020 12:12:31 +0200 (CEST) From: Brendan Tildesley Message-ID: <99b3cb1d-94d0-d3b3-a64b-873eb5edea36@brendan.scot> Date: Sun, 29 Mar 2020 21:12:21 +1100 MIME-Version: 1.0 Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-List-Received-Date: Sun, 29 Mar 2020 10:12:44 -0000 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-Mailman-Approved-At: Mon, 30 Mar 2020 04:27:35 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches So this program Piper is unique in that it is entirely useless without the the ratbagd daemon running. eventually, I'd like for a user to be able to install all that in 1 click from a GUI with just their sudo password if needed. For now, I've included in the descriptions a simple service that makes it work. With systemd systems, when Piper is opened and dbus automagically starts ratbagd, systemctl lists it as a ratbagd.service. systemctl stop ratbagd.service can the stop it if needed. With the simple service I've provided in the descriptions, herd status does not list it as a service and only reconfiguring can disable it... I think. Is there a way I can write a service that shows ratbag in herd status, and can start/stop it correctly? Or does herd not have the ability to treat dbus services as first class services? N.B, if you want to test the package you can just run sudo ratbagd, then open piper. if it says cannot find any devices, that means it working but you wont be able to use it without one of the supported devices to play with..