From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id oDLBDHFgFWZtXgEA62LTzQ:P1 (envelope-from ) for ; Tue, 09 Apr 2024 17:36:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id oDLBDHFgFWZtXgEA62LTzQ (envelope-from ) for ; Tue, 09 Apr 2024 17:36:17 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b="IQoA/Z3H"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712676977; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=80wDWFhZIwkikA/tEAapN14YUXc4C+Mm1Mwz0PK5VdU=; b=K1LiV+/RfNiWJbgJgZM3HVWy3Yoc7y9aAUPBnv5IbyL/QlRLoQuVqYKIdqib9yu+uCUuGv abv9pa6R9yrwb08yM7e2w5S6uSDun+d2CYx7ciov+XM4cCwjvdOWKhSlw7OXF3TEkFKNM8 46DOeIEsBogKVLle3InX7okNv5P3BfwP/C/Pjgrw5usJBK5WYmOl1JIQs82R3Uq+8e+qtZ evIGatH74kUjjWscXtRlWGK3AVsGlyb38l2Pt9/GUN0cahVVhCfhOorG/sxI1H0NlCL0GP v0JYUuWh1yoALJTZvcC8A/Ggl3wbPVQT1EdpO1rtvo/gj2ZBSqDmQkGJcBMxsg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712676977; a=rsa-sha256; cv=none; b=CiiokjLuz8lpaTgjmMUbGQDFmRc8Ty88R7Nrx/9nTyqr+uL/b1XxwPVDDd7SzlG3zqcC0/ UqZfKNLK4Zl4/giaSA4qCzoF4takjPSnmEmKa9f7seYUliCDyoI7jCNdhAAMN/e6+HPUK3 N5tDLvAL+d7EK17T17yNE2lqN+u+gsWRZrakl+hqlwPS9QlhpOPtGn6ELig/sb8GGA5RWG 73vtypqfAnKdZ/S43CASPcob3pMNLkR1fOrCXcJa85vAuYpKF2qe9lWVI9lgsd7dAtfZ/h djOPYLpwRBXObhcD4W8Jx66DQ+Chkgg6RGFMQ8+S7GS1MdcZRBkyAsKWEkPyfw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b="IQoA/Z3H"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1759857DF2 for ; Tue, 9 Apr 2024 17:36:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ruDVv-0003k8-5Y; Tue, 09 Apr 2024 11:35:59 -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 1ruDVt-0003ih-27 for guix-patches@gnu.org; Tue, 09 Apr 2024 11:35:57 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ruDVs-000531-9l for guix-patches@gnu.org; Tue, 09 Apr 2024 11:35:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ruDW0-0001w6-0L for guix-patches@gnu.org; Tue, 09 Apr 2024 11:36:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70282] [PATCH 1/2] gnu: gnome-shell: Wrap d-bus services. Resent-From: Dariqq Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 09 Apr 2024 15:36:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70282 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler , 70282@debbugs.gnu.org Cc: rekado@elephly.net, Raghav Gururajan , Vivien Kraus , Maxim Cournoyer Received: via spool by 70282-submit@debbugs.gnu.org id=B70282.17126769367171 (code B ref 70282); Tue, 09 Apr 2024 15:36:03 +0000 Received: (at 70282) by debbugs.gnu.org; 9 Apr 2024 15:35:36 +0000 Received: from localhost ([127.0.0.1]:51274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruDVW-0001rL-1j for submit@debbugs.gnu.org; Tue, 09 Apr 2024 11:35:35 -0400 Received: from mout02.posteo.de ([185.67.36.66]:46365) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruDVS-0001po-LM for 70282@debbugs.gnu.org; Tue, 09 Apr 2024 11:35:32 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id CD261240103 for <70282@debbugs.gnu.org>; Tue, 9 Apr 2024 17:35:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1712676915; bh=M3O/FkmVNUVK8JumAxSPBzf10dssUZl3Fko/B3H1eZc=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:Content-Type: Content-Transfer-Encoding:From; b=IQoA/Z3HkwsAfFa5cRsax2eYNZ85tCaqaFMQ53nQ3iReNj2p3KTjbXo+oycYCLH6a odEp2jYmZbpYa+J1rZDs767Jx/Hb5ETQQOSw3xKFv50txhooomcawP+vNdApNvvkVx /SdfGoviR971NuxfF/gjfrF+HYEXKtmWnRvhEfHUaZ8jsX4D2knXrdeRpVQWUasESk Tgwv87vKrypeXNw+AWZRq1NZadK8vsn0nzqkSEuqeTTBHCXsjw2LcloaLwssMf3XNB ZmL5MW/NyKr3PycTb8wrdUeIY2yNYfSNfeDpssXtBvmJpF/Z8XB3iefWFjSHcKBjEK WXVviRvRmjEZA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VDVQV0SVqz6txd; Tue, 9 Apr 2024 17:35:14 +0200 (CEST) Message-ID: <0704fbb9-91f7-4868-9d45-8236be7a84d6@posteo.net> Date: Tue, 9 Apr 2024 15:35:11 +0000 MIME-Version: 1.0 From: Dariqq References: <76b3569290ac70f823228916f8f102c1c5c94d7b.camel@gmail.com> Content-Language: en-US In-Reply-To: <76b3569290ac70f823228916f8f102c1c5c94d7b.camel@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.97 X-Spam-Score: -3.97 X-Migadu-Queue-Id: 1759857DF2 X-Migadu-Scanner: mx13.migadu.com X-TUID: bSWcca6E/yBj Hi, On 08.04.24 18:54, Liliana Marie Prikler wrote: >> new file mode 100644 index 0000000000..67ed6beadb --- /dev/null +++ >> b/gnu/packages/patches/gnome-shell-wrappable-dbus-services.patch @@ >> -0,0 +1,59 @@ +Retrieved from NixOS: >> https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/desktops/gnome/core/gnome-shell/wrap-services.patch >> >> +--- >> +diff --git a/js/dbusServices/dbus-service.in >> b/js/dbusServices/dbus- service.in +old mode 100644 +new mode >> 100755 +index 524166102..6d0722a1c +--- >> a/js/dbusServices/dbus-service.in ++++ >> b/js/dbusServices/dbus-service.in +@@ -1,3 +1,9 @@ ++#!@gjs@ ++ >> ++// gjs determines the package name from argv[0], which is .*- >> wrapped ++// so we need to override it to the original one. >> ++imports.package._findEffectiveEntryPointName = () => '@service@' >> ++ > Is there no other way to specify the entry point? If it is just about the name in argv[0] what about creating a *-wrapper instead and leaving the original file untouched rather than the wrapper replacing the original file? One quick way would be to rename the wrapper script and original file after wrap-program is called, fix the path in the wrapper script and adjust the dbus service file to call the *-wrapper instead. Have a nice day.