From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EKotIjg6bGKuwwAAbAwnHQ (envelope-from ) for ; Fri, 29 Apr 2022 21:19:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2LK3ITg6bGJbTQAAG6o9tA (envelope-from ) for ; Fri, 29 Apr 2022 21:19:20 +0200 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 3C770CB78 for ; Fri, 29 Apr 2022 21:19:20 +0200 (CEST) Received: from localhost ([::1]:42272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nkW99-0003GO-4i for larch@yhetil.org; Fri, 29 Apr 2022 15:19:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkW8t-0003FM-2l for bug-guix@gnu.org; Fri, 29 Apr 2022 15:19:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33240) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nkW8s-0007yo-Pc for bug-guix@gnu.org; Fri, 29 Apr 2022 15:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nkW8s-0003ZH-FB for bug-guix@gnu.org; Fri, 29 Apr 2022 15:19:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48796: Guix on Debian 11 - Cant run or find applications from Guix in Desktop Menus Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 29 Apr 2022 19:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48796 X-GNU-PR-Package: guix X-GNU-PR-Keywords: moreinfo To: Giovanni Biscuolo , Maxim Cournoyer , bo0od Received: via spool by 48796-submit@debbugs.gnu.org id=B48796.165125991013672 (code B ref 48796); Fri, 29 Apr 2022 19:19:02 +0000 Received: (at 48796) by debbugs.gnu.org; 29 Apr 2022 19:18:30 +0000 Received: from localhost ([127.0.0.1]:55370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkW8M-0003YS-5h for submit@debbugs.gnu.org; Fri, 29 Apr 2022 15:18:30 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:34719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkW8K-0003YD-Rp for 48796@debbugs.gnu.org; Fri, 29 Apr 2022 15:18:29 -0400 Received: by mail-ed1-f68.google.com with SMTP id a21so10137117edb.1 for <48796@debbugs.gnu.org>; Fri, 29 Apr 2022 12:18:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=o7h5JjbVlRq19SddKl6q9bv/aBOcGFSZbjlsIKFo+jo=; b=VftJ6dRgl8m9eS+7jKOyN4FZlYi0WSItDEKOiyoML255nB+tDWHnzqFqMEyhmPuqxF ioU/yImBXx1/eLKi2ZsliuPlnEIBrimfAw1TfhWRp3eOOAof3QpOTM/qgH+X8XHC+24Y y2kvCOXPrD//+SKYp7L6rARriopTefYSVe5Kew2gAkuAXN3zXCBnUYyZmCZKB2Ofjl0R rLDK92AskUkz+jY1PflqyJixVvmTbkQGk8qLnnYM/H+mFClsyTrL9762lH+GoXj+kzUq WbtGsW/wAimQEYxEZiMg/RDtDjsy2m2yKW0xuo/8UCZdrVYyFXblL2U5kn4nPxRnkNpb OInQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=o7h5JjbVlRq19SddKl6q9bv/aBOcGFSZbjlsIKFo+jo=; b=a4eHQdrf2mRzCSn6IvpZFbaqxAonHkWCmDLN2oUYwwYamAFQrqAq7jgdY6pcJKiDo/ XtTQW0uvgaNbnoNIGgqlz19sQqiw5r3lXrBfcqKkzu36S/0YTRwkbSRjOXfXXZd2AiAV PWcMNDTuaxCxHuRDUpbU9zK+4zmu6+v0oNr7w6X7UZNZGNF/IJ+c3nwr1GqDESC1Ikun 3xlgJOhneMuV6MLPUnrK/yzyAfnS+9Mu58NpkCYP0XTJZLr/7wWuFqbPCCHYdZtlXXe8 PMqGEiBx3nMJqNNHPc2sX2sHPwfkDlZzDRZDhnod/5vPYDvzABqRxPNF99A6HVg9nafZ GLTw== X-Gm-Message-State: AOAM531IIRoiybhY1+uGzmpdJ/CZ28Ir3VX3W2N5uCBPfR85dLNGEkNs qqE6LvMMlLhOrCmVRgQk9bQ= X-Google-Smtp-Source: ABdhPJxvStC40Q8UBlmtZ8Ptqne++pfER3zJ1fqxCdHs9jt/DnF3txet91LSw/OVOKi5fU5bMVc0bQ== X-Received: by 2002:a05:6402:5ca:b0:423:f330:f574 with SMTP id n10-20020a05640205ca00b00423f330f574mr794488edx.116.1651259902759; Fri, 29 Apr 2022 12:18:22 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id hg13-20020a1709072ccd00b006f3ef214df3sm899213ejc.89.2022.04.29.12.18.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 12:18:21 -0700 (PDT) Message-ID: <59eff3512f8726c4ac0ee4071d878536b197d31f.camel@gmail.com> From: Liliana Marie Prikler Date: Fri, 29 Apr 2022 21:18:20 +0200 In-Reply-To: <87pml1gpw8.fsf@xelera.eu> References: <87zgs3jxvr.fsf@gmail.com> <87pml1gpw8.fsf@xelera.eu> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 48796@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651259960; 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=o7h5JjbVlRq19SddKl6q9bv/aBOcGFSZbjlsIKFo+jo=; b=eTEldqx67Md7Qr4OpoOg4N41e8n7eqBPf8FuyUtr1I77PYx6pG2MNa4+yrwgd6p/H1Crj0 Vz9YjJwcQO2RaY0XTHTES28oXdvGfxBuu08dMUxlOdxagtgzKLVzXitscnU3hvk9lFOepm zK5eTGSwcnTieLW/s5o4UkMyYW9u/l4043D56GttJeSQP/NmgC6FbX6ziUXf3Aiu6FbCSL hTaMW+Q/N/QByYf1uoxhiu+avauLjW7hTsgsCfjy8DUfZ5Bv8JL8eLfvrYjdd0531sQmrv ILBMydShxD6/4RBUWrHRxht/rpe1ge9sgGdiA/1ytBi+2rZXJ1FRUD+k4Jxusw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651259960; a=rsa-sha256; cv=none; b=HfNhWo4h6UzcBDkblML00VuIfTzbWoKVm2dQMYQyydVGbykBNaOL9RzFtNDJeE/dSXq/lv MS54H1WlYE8HaqRM0bpwToThVgVnoBnKLzvkyoNRA235x/KiIEsK4SNzX3TpnjVilnxSaR gZSVHmsx0aDh1nN9BJHbqwmv79YmQx+JgmJ0BwcYb8HPPy23cNj0jqf+e/iXEBgJoG77FB YMBRPoZWAwBZWo8bRPqpykCd9vE4iMpOLvvfQsIoU0TY0TMgFRo23bH4NQV+QpJyUUfu3X 9bz0PDuX/lbfhn7qe75lnjymHGGKzTtXXoaiKBMMTdH8D7vitILC/1qXMXLIKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=VftJ6dRg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.50 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=VftJ6dRg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3C770CB78 X-Spam-Score: 7.50 X-Migadu-Scanner: scn1.migadu.com X-TUID: e2e9Gsj0Jp/c Hi Giovanni, Am Donnerstag, dem 28.04.2022 um 17:59 +0200 schrieb Giovanni Biscuolo: > [...] > > # set XDG_DATA_DIRS to include Guix installations > > export XDG_DATA_DIRS="$GUIX_PROFILE/share:${XDG_DATA_DIRS:- > > /usr/local/share/:/usr/share/}" > > --8<---------------cut here---------------end--------------->8--- > > > > It even set XDG_DATA_DIRS, which should allow integration with the > > GNOME Shell and other graphical dashboards. > > No: this does not work, for three reasons: > > 1. AFAIU "/etc/profile.d/guix.sh" or "~/.profile" are not > sourced/executed in a graphical session (graphical shell?), we need > to ~/.xsessionrc to configure that environment: am I wrong? Depends on your setup. Some systemd setups don't source it, but note that you can work around that by editing the offending file. More importantly... > 2. XDG_DATA_DIRS gets someway hard reset by "something" to this > value: > > XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm:/var/lib/men > u-xdg:/usr/local/share/:/usr/share/:/usr/share/gdm/:/var/lib/menu- > xdg/ I would investigate what actually "resets" this. If it survives XDG_DATA_DIRS=blah $SHELL, then it's in the stuff your shell sources. If it doesn't, then you probably just experience (1). > (I found workaround, see below) > > 3. desktop menus (I tested LXDE and Mate, not Gnome Shell) are not > updated We hacked our Gnome Shell package to do this on Guix – naturally this won't work for foreign systems or other packages. > [...] > The main point of this workaround is that I configure XDG_DATA_HOME, > described in the specifications: And that is evil. > [...] > Anyway to make the new installed *.desktop files appear in the menu, > I have to logout and login again: I've still not found a command (or > configuration) to update the menu, "xdg-desktop-menu forceupdate" > does not work. Should it? It might only honor XDG_DATA_DIRS and ignore XDG_DATA_HOME by accident. Other than that, restarting your shell (if running on X) might be a more lightweight way of refreshing the menu. Cheers