From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CC264138334 for ; Sat, 14 Dec 2019 23:05:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0C3E1E0841; Sat, 14 Dec 2019 23:05:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D6ECDE0841 for ; Sat, 14 Dec 2019 23:05:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5EB7534D7C5 for ; Sat, 14 Dec 2019 23:05:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 15E23905 for ; Sat, 14 Dec 2019 23:05:20 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1576364712.ae88f9598d5c2932409b258dbfed50ac6d82a7d5.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/gnome-shell-extension-gsconnect/, ... X-VCS-Repository: repo/gentoo X-VCS-Files: gnome-extra/gnome-shell-extension-gsconnect/files/gnome-shell-extension-gsconnect-28-silent-flag.patch gnome-extra/gnome-shell-extension-gsconnect/gnome-shell-extension-gsconnect-28-r1.ebuild X-VCS-Directories: gnome-extra/gnome-shell-extension-gsconnect/files/ gnome-extra/gnome-shell-extension-gsconnect/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: ae88f9598d5c2932409b258dbfed50ac6d82a7d5 X-VCS-Branch: master Date: Sat, 14 Dec 2019 23:05:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c44cfce6-827f-46b6-b578-875e099e18b3 X-Archives-Hash: 7534665b357d9531b67ea27ac93efbdc commit: ae88f9598d5c2932409b258dbfed50ac6d82a7d5 Author: Pacho Ramos gentoo org> AuthorDate: Sat Dec 14 22:30:37 2019 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Sat Dec 14 23:05:12 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae88f959 gnome-extra/gnome-shell-extension-gsconnect: Fix some notifications (like WhatsApp ones) Package-Manager: Portage-2.3.80, Repoman-2.3.19 Signed-off-by: Pacho Ramos gentoo.org> ...-shell-extension-gsconnect-28-silent-flag.patch | 39 ++++++++++++ .../gnome-shell-extension-gsconnect-28-r1.ebuild | 70 ++++++++++++++++++++++ 2 files changed, 109 insertions(+) diff --git a/gnome-extra/gnome-shell-extension-gsconnect/files/gnome-shell-extension-gsconnect-28-silent-flag.patch b/gnome-extra/gnome-shell-extension-gsconnect/files/gnome-shell-extension-gsconnect-28-silent-flag.patch new file mode 100644 index 00000000000..444642ee3c7 --- /dev/null +++ b/gnome-extra/gnome-shell-extension-gsconnect/files/gnome-shell-extension-gsconnect-28-silent-flag.patch @@ -0,0 +1,39 @@ +From 1811528ca72a2b83924bc717c424f1301bf17c30 Mon Sep 17 00:00:00 2001 +From: Andy Holmes +Date: Sun, 1 Dec 2019 16:39:41 -0800 +Subject: [PATCH] Notification Plugin: ignore the `silent` flag entirely + +Upstream kdeconnect-android is tagging many notifications as `silent`, +causing them to never be shown. Since we already handle duplicates in +the Shell, we ignore that flag for now. + +closes #720 +--- + src/service/plugins/notification.js | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/src/service/plugins/notification.js b/src/service/plugins/notification.js +index b31a828ba..45ed2050c 100644 +--- a/src/service/plugins/notification.js ++++ b/src/service/plugins/notification.js +@@ -135,16 +135,16 @@ var Plugin = GObject.registerClass({ + + /** + * Handle an incoming notification or closed report. ++ * ++ * FIXME: upstream kdeconnect-android is tagging many notifications as ++ * `silent`, causing them to never be shown. Since we already handle ++ * duplicates in the Shell, we ignore that flag for now. + */ + _handleNotification(packet) { + // A report that a remote notification has been dismissed + if (packet.body.hasOwnProperty('isCancel')) { + this.device.hideNotification(packet.body.id); + +- // A silent notification; silence it by aborting the icon transfer +- } else if (packet.body.hasOwnProperty('silent') && packet.body.silent) { +- this.device.rejectTransfer(packet); +- + // A normal, remote notification + } else { + this.receiveNotification(packet); diff --git a/gnome-extra/gnome-shell-extension-gsconnect/gnome-shell-extension-gsconnect-28-r1.ebuild b/gnome-extra/gnome-shell-extension-gsconnect/gnome-shell-extension-gsconnect-28-r1.ebuild new file mode 100644 index 00000000000..6b7eee3c579 --- /dev/null +++ b/gnome-extra/gnome-shell-extension-gsconnect/gnome-shell-extension-gsconnect-28-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit gnome2-utils meson readme.gentoo-r1 + +DESCRIPTION="KDE Connect implementation for Gnome Shell" +HOMEPAGE="https://github.com/andyholmes/gnome-shell-extension-gsconnect" +SRC_URI="https://github.com/andyholmes/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nautilus" + +COMMON_DEPEND="dev-libs/glib:2" +RDEPEND="${COMMON_DEPEND} + app-eselect/eselect-gnome-shell-extensions + >=dev-libs/gjs-1.48 + >=gnome-base/gnome-shell-3.28 + gnome-base/gvfs + || ( ( net-libs/gnome-online-accounts dev-libs/libgdata ) dev-libs/folks ) + || ( media-libs/libcanberra media-libs/gsound ) + nautilus? ( + dev-python/nautilus-python + gnome-base/nautilus[introspection] ) +" +DEPEND="${COMMON_DEPEND}" +BDEPEND=" + >=dev-util/meson-0.49.0 + virtual/pkgconfig +" + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS="For knowing more about how to do the setup, please visit: +https://github.com/andyholmes/gnome-shell-extension-gsconnect/wiki/Installation" + +PATCHES=( + # Fix WhastApp notifications, https://github.com/andyholmes/gnome-shell-extension-gsconnect/issues/720 + "${FILESDIR}/${P}-silent-flag.patch" +) + +src_configure() { + # nemo support relies on nemo-python from https://github.com/linuxmint/nemo-extensions + # https://bugs.gentoo.org/694388 + meson_src_configure \ + -Dnemo=false \ + $(meson_use nautilus) +} + +src_install() { + meson_src_install + readme.gentoo_create_doc +} + +pkg_preinst() { + gnome2_schemas_savelist +} + +pkg_postinst() { + gnome2_schemas_update + ebegin "Updating list of installed extensions" + eselect gnome-shell-extensions update + eend $? + readme.gentoo_print_elog +} + +pkg_postrm() { + gnome2_schemas_update +}