From patchwork Sat Oct 22 04:48:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: John Kehayias X-Patchwork-Id: 43815 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 DBFEA27BBEB; Sat, 22 Oct 2022 06:07:57 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6C44D27BBE9 for ; Sat, 22 Oct 2022 06:07:56 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1om6RV-0007J1-FU; Sat, 22 Oct 2022 00:49:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1om6RT-0007Ib-1b for guix-patches@gnu.org; Sat, 22 Oct 2022 00:49:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1om6RS-0005hW-QS for guix-patches@gnu.org; Sat, 22 Oct 2022 00:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1om6RS-0003fT-CJ for guix-patches@gnu.org; Sat, 22 Oct 2022 00:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58707] [PATCH] gnu: Add snixembed. Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 22 Oct 2022 04:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58707 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58707@debbugs.gnu.org X-Debbugs-Original-To: Guix-patches Received: via spool by submit@debbugs.gnu.org id=B.166641411614064 (code B ref -1); Sat, 22 Oct 2022 04:49:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Oct 2022 04:48:36 +0000 Received: from localhost ([127.0.0.1]:39507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1om6Qy-0003ej-FD for submit@debbugs.gnu.org; Sat, 22 Oct 2022 00:48:35 -0400 Received: from lists.gnu.org ([209.51.188.17]:45452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1om6Qw-0003ea-CP for submit@debbugs.gnu.org; Sat, 22 Oct 2022 00:48:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1om6Qv-0006zQ-LN for guix-patches@gnu.org; Sat, 22 Oct 2022 00:48:29 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1om6Qt-0005eq-JV for guix-patches@gnu.org; Sat, 22 Oct 2022 00:48:29 -0400 Date: Sat, 22 Oct 2022 04:48:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1666414104; x=1666673304; bh=oQjb6W9oGwl9aW2U9hhjO05ohhlSicwn2IHq57IwZOU=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID; b=R2ovkj3KL8IfV6Vrd3UYD1qNSITqoFj8Wsa9E1DwXxTjScHyO1S8Ryh/5ujWScb/M O98kgyih3inv+vfqHspXNajIjajXvxWyM6NcyMhlSDk9PxCz5XcL6nGTm8Q8UYt8bb EwtPMApI7C3IFulDJxBEnU9yIMt7KGYVuBhiQrgDhWoVCBNQYPl/u5kD/H5ebe//IE S5+BCECukwo/DgQMS1c6tdFcfX4C/EjKT7ExKGmbkj6KHRr8ozk9A1AWILdqd9RJyA abOg4gU74a4+sw0AuV2BUXJtRBZX7gKqFgPoRJc3EMLjLZ6S4Z076fwcb+ml8VlwuF BJ5BbgwXf/NDw== Message-ID: <875ygcbh0v.fsf@protonmail.com> Feedback-ID: 7805494:user:proton MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.43.16; envelope-from=john.kehayias@protonmail.com; helo=mail-4316.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Guix-patches" Reply-to: John Kehayias X-ACL-Warn: , John Kehayias via Guix-patches X-Patchwork-Original-From: John Kehayias via Guix-patches via From: John Kehayias Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hi guix-ers, Here's a quick patch to add snixembed, a little utility to allow fallback older systemtray support for some newer programs that only have StatusNotifierItem support. I've used guix style (though I usually do a little more vertical space over horizontal on origin and had make-flags as one line) and lint, checked the license, built, and successfully used the program. Thanks! John From 9534c8c0cae16252353efaca4a6a4db28927e005 Mon Sep 17 00:00:00 2001 From: John Kehayias Date: Sat, 22 Oct 2022 00:40:27 -0400 Subject: [PATCH] gnu: Add snixembed. * gnu/packages/freedesktop.scm (snixembed): New variable. --- gnu/packages/freedesktop.scm | 45 +++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 07ccf9f8f2..7f9b9f932b 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -26,7 +26,7 @@ ;;; Copyright © 2021 Sarah Morgensen ;;; Copyright © 2021 Robby Zambito ;;; Copyright © 2021, 2022 Maxime Devos -;;; Copyright © 2021 John Kehayias +;;; Copyright © 2021, 2022 John Kehayias ;;; Copyright © 2021, 2021, 2022 Maxim Cournoyer ;;; Copyright © 2022 Daniel Meißner ;;; Copyright © 2022 muradm @@ -2385,6 +2385,49 @@ (define-public libappindicator fallback to generic Systray support if none of those are available.") (license license:lgpl2.1+)))) +(define-public snixembed + (package + (name "snixembed") + (version "0.3.3") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~steef/snixembed/") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "14fkgxww4qbsxyqj9h3yqpdqsdz9r6015c9graas50r5b5ggd3bj")) + (modules '((guix build utils))))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ;no tests + #:make-flags #~(list "CC=gcc" + (string-append "PREFIX=" + #$output)) + #:phases #~(modify-phases %standard-phases + (delete 'configure)))) ;no configure + (inputs (list gtk+ libdbusmenu)) + (native-inputs (list pkg-config vala)) + (synopsis "Proxy StatusNotifierItems as XEmbedded systemtray-spec icons") + (home-page "https://git.sr.ht/~steef/snixembed") + (description + "Snixembed is a program to proxy StatusNotifierItems as +XEmbedded systemtray-spec icons. This allows programs that only support the +newer StatusNotifierItem to have the older XEmbedded systemtray support. +While snixembed works fine with most setups, some bars and DEs provide their +own optional SNI support, which should be preferred when available. + +Currently supported: +@itemize +@item icons (by pixmap and by freedesktop name) +@item activation on left mouse button +@item context menu on right mouse button (Menu dbusmenu or ContextMenu) +@item tooltips (on hover, all markup except hyperlinks) +@item limited AppIndicator support as a fallback +@end itemize") + (license license:isc))) + (define-public libportal (package (name "libportal") -- 2.38.0