From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eNRDH4qcpV9+LQAA0tVLHw (envelope-from ) for ; Fri, 06 Nov 2020 18:57:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id OGopG4qcpV/2MQAA1q6Kng (envelope-from ) for ; Fri, 06 Nov 2020 18:57:14 +0000 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 DAC0C9402C2 for ; Fri, 6 Nov 2020 18:57:13 +0000 (UTC) Received: from localhost ([::1]:50956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kb6vA-0004eX-Se for larch@yhetil.org; Fri, 06 Nov 2020 13:57:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:32906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kb6v4-0004eQ-9n for bug-guix@gnu.org; Fri, 06 Nov 2020 13:57:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45753) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kb6v0-0000VF-Kx for bug-guix@gnu.org; Fri, 06 Nov 2020 13:57:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kb6v0-0005iA-DR for bug-guix@gnu.org; Fri, 06 Nov 2020 13:57:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#36376: Application menu of desktop environment not automatically updated Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 06 Nov 2020 18:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36376 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 36376-submit@debbugs.gnu.org id=B36376.160468897921903 (code B ref 36376); Fri, 06 Nov 2020 18:57:02 +0000 Received: (at 36376) by debbugs.gnu.org; 6 Nov 2020 18:56:19 +0000 Received: from localhost ([127.0.0.1]:57299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kb6uJ-0005hD-BS for submit@debbugs.gnu.org; Fri, 06 Nov 2020 13:56:19 -0500 Received: from mail-qk1-f176.google.com ([209.85.222.176]:42179) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kb6uH-0005h0-Nn for 36376@debbugs.gnu.org; Fri, 06 Nov 2020 13:56:18 -0500 Received: by mail-qk1-f176.google.com with SMTP id b18so2029426qkc.9 for <36376@debbugs.gnu.org>; Fri, 06 Nov 2020 10:56:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=LFRk7dNyQYJwEdgX/62ZFeKvWze1g1Rim7W+8mlKBeA=; b=UVAc20L8t0qlKfzh4m0KpyNaV62TgHTL1RYzYQwlJEFzaP9bOT1/La47rJ36Oqi/qp rW3JycgIzP0/uRU7242zr6XfIF/xFpRz5h7LKihyDoGDjZbCK+JuXAUvD04N+7HeHmE+ c1ueBzsmjZM+zG90GZh3cb9fP+p+vchsWepgcBH6dfIzyPcSxvYKa5qv0r32668+T43d G9YQG4ByF00s19MDKBLwJ/C2pGQbBTgHiK5zuLCJRqLKjAzw9G43PskO/ZkUgLxYFrgP ab7rhduVbI3pr1P5SrRhetkavDbJvszyIeOaJte6irglMmMgMaS4fGJCG+6x9EfZwegt pBDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=LFRk7dNyQYJwEdgX/62ZFeKvWze1g1Rim7W+8mlKBeA=; b=ucia9L9KsM3S0Cmiywb5WYnAT681bAUPrM39z5mc2WXjr5/n4R5e0bTrZc+CvRxH2n CX/gFpDnxmSIQzWO808HvJN6yRSyIQXbS+Y+0ptYzqNjafU1Qlox+uOWz+2E1LZBg8V/ zLsXoO47veiTGEUqPEG8pteDlmA2KjjQYODC3IEswXhloxJ1Z27bProzZZcklmdreWd1 c5EMz491PgDrMuNjmWC77HsUHJL1j81R4PvDQ9DcHpfd52RBdUPmYQBsvBVqq+ywKVkZ 5PUmOeQlwwgBaUx24GYOPDvhcGi+yVISKlnLKbya0Uml4E6s/EksncrB5VlqyIJIL6YF OgnQ== X-Gm-Message-State: AOAM53261pAaF7nNWasMVuEBTp6ErS1239M/Y4pDTc1zW9/a04O9uS3P TN65rtFGWZphtyFFuQx0tyU= X-Google-Smtp-Source: ABdhPJzXoC3w3pFvkqEiB7TgkyU/0BZDcaUtHfUsDjzKH46cf4Z4ak581nQJu2IRnISDehaZpzcs2g== X-Received: by 2002:a37:6187:: with SMTP id v129mr2984298qkb.31.1604688972087; Fri, 06 Nov 2020 10:56:12 -0800 (PST) Received: from hurd (dsl-236-123-209.b2b2c.ca. [207.236.123.209]) by smtp.gmail.com with ESMTPSA id a7sm1093431qth.41.2020.11.06.10.56.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 10:56:11 -0800 (PST) From: Maxim Cournoyer References: <871rzhn483.fsf@gnu.org> <87o8keawju.fsf@gnu.org> <87d00swboe.fsf@gmail.com> <878sbexylp.fsf@gnu.org> Date: Fri, 06 Nov 2020 13:56:10 -0500 In-Reply-To: <878sbexylp.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Fri, 06 Nov 2020 17:02:26 +0100") Message-ID: <87r1p6tiut.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Leo Prikler , 36376@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=UVAc20L8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: DXcFnZuFUc/0 Hey Ludovic, Ludovic Court=C3=A8s writes: > Hi Maxim, > > Maxim Cournoyer skribis: > >> From a79645c565e56ac201e66936d9f9883ad9387b06 Mon Sep 17 00:00:00 2001 >> From: Maxim Cournoyer >> Date: Thu, 5 Nov 2020 00:24:29 -0500 >> Subject: [PATCH] gdesktopappinfo: Fix monitoring of a Guix profile >> XDG_DATA_DIR. >> MIME-Version: 1.0 >> Content-Type: text/plain; charset=3DUTF-8 >> Content-Transfer-Encoding: 8bit >> >> Fixes . >> >> Treat the $HOME/.guix-profile/share and /run/current-system/share >> XDG_DATA_DIRS file names specially so that the inotify-based monitors >> placed by GLib monitor their parent link rather than an immutable >> directory. >> >> Co-authored by Ludovic Court=C3=A8s <=C4=BCudo@gnu.org>. > ^ > This is LATIN SMALL LETTER L WITH CEDILLA. :-) > >> --- >> gio/gdesktopappinfo.c | 17 +++++++++++++++-- >> 1 file changed, 15 insertions(+), 2 deletions(-) > > I like that it=E2=80=99s short and sweet, nice! I thought too, but it doesn't work, because these entries never make it to XDG_DATA_DIRS in the first place, at least for the system profile. I also gave a try to 1) a modified version of your patch that added support for /run/current-system and 2) your patch unmodified with inconclusive results so far. I did see things being scanned in response to /run/current-system changing, but I believe this was because I goofed up the dir path to "/run/current-system/share" (it should have been ""/run/current-system/profile/share"), and there's some code gdesktopappinfo.c (desktop_file_dir_get_alternative_dir) that sets the monitored directory to a parent when the directory doesn't exist. In either version, strace failed to show any activity upon recreating the ~/.guix-profile (that is /root/.guix-profile since I was testing as root in the VM) link, different to what you had found. So, to be continued... Maxim