From mboxrd@z Thu Jan 1 00:00:00 1970 From: swedebugia Subject: 500+ Gnome-shell-extensions - how to handle? Date: Thu, 13 Dec 2018 13:15:34 +0100 Message-ID: <4cb5668a-8d76-dcb4-87b9-ccb7d14f509d@riseup.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------8BB4ED6488C4C51D2B0033FD" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXPuF-0005t8-At for guix-devel@gnu.org; Thu, 13 Dec 2018 07:15:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXPuD-0007Yp-P2 for guix-devel@gnu.org; Thu, 13 Dec 2018 07:15:55 -0500 Received: from mx1.riseup.net ([198.252.153.129]:59944) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gXPuD-0006MT-BS for guix-devel@gnu.org; Thu, 13 Dec 2018 07:15:53 -0500 Received: from piha.riseup.net (piha-pn.riseup.net [10.0.1.163]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 386EC1A348C for ; Thu, 13 Dec 2018 04:15:37 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by piha.riseup.net with ESMTPSA id 59BAA6AEE5 for ; Thu, 13 Dec 2018 04:15:35 -0800 (PST) Content-Language: en-US List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel This is a multi-part message in MIME format. --------------8BB4ED6488C4C51D2B0033FD Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi people How do we best handle gnome-shell-extensions? They seem needing to be registered via gsettings (see example in the install.sh attached) so a service for exporting the installed extensions seems necessary. So in a config we would specify: (shell-extension-service-type => (inherit config) (extensions (list (cpufreq-konkor ...))))) Things to ponder: - what naming scheme? - new importer for extensions? - new build-system parsing the metadata.json? Sum up of findings: - 90% of the extensions had a link to a github repository and had a license clearly specified there. - No license information on https://extensions.gnome.org (not suitable for import in my view) - No dependencies found for extensions (they don't depend on each other) - No need to support gnome-shell-js install via browser - gse (gnome-shell-extensions) proposed as a prefix for these packages. - author as they appear on https://extensions.gnome.org proposed as suffix. ------ NAMING: What do we call them? e.g. https://extensions.gnome.org/extension/1082/cpufreq/ "by konkor" https://github.com/konkor/cpufreq -> gse-cpufreq-konkor? as opposed to this one https://extensions.gnome.org/extension/47/cpu-frequency/ "by ojo" https://github.com/azdyb/gnome-shell-extension-cpufreq/tree/master/cpufreq%40zdyb.tk -> gst-cpufreq-ojo? In the attached install.sh. There gse-cpufreq-konkor is listed with a UUID as "cpufreq@konkor" (from https://github.com/konkor/cpufreq/blob/master/install.sh) ----------------- Here is an example without an install script (which seems to be a common case): cpupower: https://github.com/martin31821/cpupower There is a https://github.com/martin31821/cpupower/blob/master/metadata.json with the following information: { "localedir":"/usr/local/share/locale", "shell-version": [ "3.10", "3.12", "3.14", "3.16", "3.18", "3.20", "3.22", "3.24", "3.26" ], "uuid": "cpupower@mko-sl.de", "name": "CPU Power Manager", "url": "https://github.com/martin31821/cpupower", "description": "Manage Intel_pstate CPU Frequency scaling driver", "schema": "org.gnome.shell.extensions.cpupower" } Based on this I guess we could import gnome-shell-extensions by pointing to the git-repository of them. Those without a git repository are not free because the source is not available... Any thoughts? -- Cheers Swedebugia --------------8BB4ED6488C4C51D2B0033FD Content-Type: application/x-shellscript; name="install.sh" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="install.sh" IyEvdXNyL2Jpbi9lbnYgYmFzaAoKZWNobyAiSW5zdGFsbCB0aGUgZXh0ZW5zaW9uIGZyb20g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