From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id sHtmNieuzGZpKAEAe85BDQ:P1 (envelope-from ) for ; Mon, 26 Aug 2024 16:32:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id sHtmNieuzGZpKAEAe85BDQ (envelope-from ) for ; Mon, 26 Aug 2024 18:32:40 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724689959; h=from:from:sender:sender: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=2gzYpo6g1SVLJSWXPKdK5UqReDwCR26d/a3t61yr4wo=; b=nRBm/BbnoaDU3HrMBYLROfqrveC9Q/4cdRZca+YLMkb57bkzBEew6eWxUKleeooKKL47MG IWjgjqw/XVK4iL/cetvKneYvIhCvGp8rtta+mTKK5+F/dLmYrzXtmxV3bWxu/fG+3JWgwy MXmpZbNY46iV9xGM7B+RPsJ9eL4J195nlYw/0Q0S2oXQURM+QBzByl5wyVbYDiMoETPBW/ XIakZLki41SXGfSSt0y6jwWbZ37ZPQQY3n5NdtBeKG8ijtKsOUzsmV7/Xcj2EOYNf9qXaJ XFcHabIe7uYvA0h6VEyFGQwlx6VhBlk+c8pjU2ECUc2sssiJ4jFdO6G5+wJ6qg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724689959; a=rsa-sha256; cv=none; b=HaeWMW4tj5v//lIAY7+cHcUBaTkELxSpBYfhIMCrJvgq/3WiJtzswZWjAznQyfXrckaS8s RKx8oefPpNvU7ckREGs+XDj+evuGMr2w5a8XtGt79bD2KMERsfm1d5E0GT1hF4mKv/KPsF eNOJVeE0xEjKnCdOo71SVyZLuZzf6v/AsmqKKKbTU7XHhr1krfCvNO9QWhPLyj4Moqvqyt tJQ43kZLXM3b8m8fKv6OlAUOkWLq2lFFdZH8w3NUbqN85wyBsu0EiLLAwNAsBJFBiYfYpV kYhrdm3fPY0lVxBl7PWJSFPbkwiawXrWWj/PC5UeijqldqqPhdL2dz03O5OzOQ== 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 73CC8751D1 for ; Mon, 26 Aug 2024 18:32:39 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sicdX-00032c-KX; Mon, 26 Aug 2024 12:32:11 -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 1siV56-0001Af-K0 for help-guix@gnu.org; Mon, 26 Aug 2024 04:28:08 -0400 Received: from mout-p-202.mailbox.org ([80.241.56.172]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1siV54-0004wL-V6 for help-guix@gnu.org; Mon, 26 Aug 2024 04:28:08 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4WskMH1lB4z9t2C; Mon, 26 Aug 2024 10:27:55 +0200 (CEST) Date: Mon, 26 Aug 2024 10:27:54 +0200 (CEST) From: Nils Landt To: Roman Riabenko , Roman Riabenko via Message-ID: <1137311607.101756.1724660874419@office.mailbox.org> In-Reply-To: <5146d784dc15d773b8a6fb172771f639e2b9b6e4.camel@riabenko.com> References: <5146d784dc15d773b8a6fb172771f639e2b9b6e4.camel@riabenko.com> Subject: Re: D-Bus service files on foreign distributions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Normal X-Rspamd-Queue-Id: 4WskMH1lB4z9t2C Received-SPF: pass client-ip=80.241.56.172; envelope-from=nils.landt@nlsoft.de; helo=mout-p-202.mailbox.org X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 26 Aug 2024 12:32:09 -0400 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -6.68 X-Migadu-Queue-Id: 73CC8751D1 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.68 X-TUID: KKpMwd7ejpg8 > Roman Riabenko via hat am 25.08.2024 13:08 CEST gesch= rieben: >=20 > =20 > Hello >=20 > How to expose service files to D-Bus on a foreign distribution? >=20 > I installed gnome-text-editor with guix on a foreign distribution > (PureOS byzantium). It would run from command line, but fail to start > from the applications grid with the following error. >=20 > $ journalctl -f > =D1=81=D0=B5=D1=80 25 10:35:03 pureos phosh[1402]: Failed to launch app '= =D0=A2=D0=B5=D0=BA=D1=81=D1=82=D0=BE=D0=B2=D0=B8=D0=B9 > =D1=80=D0=B5=D0=B4=D0=B0=D0=BA=D1=82=D0=BE=D1=80' with startup id: '6546b= 399-a2e0-4ded-b278-84863a9f32bf' >=20 > I considered the presence of "DBusActivatable=3Dtrue" in its desktop file > and copied the service file. That allowed me to launch the application > from the icon as expected.=20 >=20 > $ sudo cp /home/purism/.guix-profile/share/dbus- > 1/services/org.gnome.TextEditor.service /usr/share/dbus-1/services/ >=20 > Is there a better approach for making the service files available to D- > Bus on a foreign distribution? I'm 100% guessing here, but I think systemd just doesn't see your service f= iles because they are not in the search path. If this is the case, you can set XDG_DATA_DIRS in ~/.config/systemd/user.co= nf (under the Manager header), i.e.: [Manager] ManagerEnvironment=3D"XDG_DATA_DIRS=3D/home/purism/.guix-profile/share" If that doesn't work, I'm out of ideas :)