From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id Lf/KIrBETmG8EQEAgWs5BA (envelope-from ) for ; Fri, 24 Sep 2021 23:35:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eCfUHbBETmEfKgAA1q6Kng (envelope-from ) for ; Fri, 24 Sep 2021 21:35:44 +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 295DA8510 for ; Fri, 24 Sep 2021 23:35:44 +0200 (CEST) Received: from localhost ([::1]:35170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTsr8-0000o5-Up for larch@yhetil.org; Fri, 24 Sep 2021 17:35:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTsqU-0000nw-Cu for bug-guix@gnu.org; Fri, 24 Sep 2021 17:35:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47813) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTsqU-0000fq-4M for bug-guix@gnu.org; Fri, 24 Sep 2021 17:35:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTsqT-0006fe-SP for bug-guix@gnu.org; Fri, 24 Sep 2021 17:35:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50789: syncthing-gtk creates autostart file with wrong bin Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 24 Sep 2021 21:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50789 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 50789@debbugs.gnu.org X-Debbugs-Original-To: "bug-guix@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.163251925025554 (code B ref -1); Fri, 24 Sep 2021 21:35:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Sep 2021 21:34:10 +0000 Received: from localhost ([127.0.0.1]:59359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTspe-0006e6-GE for submit@debbugs.gnu.org; Fri, 24 Sep 2021 17:34:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:38578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTspc-0006dz-Oi for submit@debbugs.gnu.org; Fri, 24 Sep 2021 17:34:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37412) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTspc-0000lZ-Hb for bug-guix@gnu.org; Fri, 24 Sep 2021 17:34:08 -0400 Received: from mail-0301.mail-europe.com ([188.165.51.139]:58846) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTspa-0008Ud-Ch for bug-guix@gnu.org; Fri, 24 Sep 2021 17:34:08 -0400 Date: Fri, 24 Sep 2021 21:33:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1632519240; bh=dPjOscLNeI3cRcmKbX0rh1PXNU8gz2qbpEvTIoVvM3o=; h=Date:To:From:Reply-To:Subject:From; b=QuekknQErc29CjxQRoN6shwETHUK9YBfliGd1FeTqif9GbWEiiBOYJ+6Z5hw77eIg Yp7odG6t8IgVypyZL+HGrRf4C0XOoX68tCh2xJ0PdNwqOzPgyARGWQ3vUYziGAN9DC ZPTB+Cs8w3Ar/M3vgmUX86bmZFYTp/eRnO4XwTU8= Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=188.165.51.139; envelope-from=john.kehayias@protonmail.com; helo=mail-0301.mail-europe.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: John Kehayias X-ACL-Warn: , John Kehayias From: John Kehayias via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632519344; h=from:from:sender:sender:reply-to: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:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=dPjOscLNeI3cRcmKbX0rh1PXNU8gz2qbpEvTIoVvM3o=; b=oezpzgP3C1/b/R4SIHBDPgH0cE3ZmSzaAom5Jrdqq8btSpMElDwGZRu5w4tUb40hw3uN78 jnzO9xrFefqueyGfU8raYk2GNwMn9VtdBqXze4WxGuLN7LqZOt4fchmCpHu++Fb1n2ww1O Ad0qDHK28iNA8po64w0yqw/pSKbmoKdcCrDAGOj5QsyHcMruFqdVTyD8cIPUV7OSREQSzr BOMA2+I4mIi4SCQgLFRbm7aTat4kMriKxH08W74i66patg6E5yuuud39rFBg10p6um07SQ zP33ffyqIxQysVpLQ7BMGG7QWubtdzyfusYnp6OUhfsDAj4ChoRDjN/Gi6uqmQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632519344; a=rsa-sha256; cv=none; b=QA0lGtvYIiFVhngvFpSl/6C6DZIjwygEI+3LZXP9zyp2kJARbWVUB+lLCnJ8WwUHJ5iygM Y7ghymoMUnsn2iJxtFP7fFiAzBjr4TCUtX+vhLrimbd+TGrY+aaCIS0xZX6nAUArFt0f6L x46sWgoTJ6LvE/lvC0pDJ+jXNA+AZEn092t7RM+FmxjGnEvke2ICXURhJ5j2xiAmAQ5b3Q FXRY29wl4ACXGC21/inASu73op0etPU1FFVPVzKo1pwOFyBo0Cg3n2928pDSVrTN5twnFB iFs7+E9R1R3A5m8Nq8vABXyepJ8JOUSA1ZyZEbsmsAxghHk1rG5TAZOLaKLWnA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=QuekknQE; dmarc=pass (policy=none) header.from=gnu.org; 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-Migadu-Spam-Score: -3.49 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=QuekknQE; dmarc=pass (policy=none) header.from=gnu.org; 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-Migadu-Queue-Id: 295DA8510 X-Spam-Score: -3.49 X-Migadu-Scanner: scn1.migadu.com X-TUID: pVCVpbB8qU71 Hello, syncthing-gtk has an option to enable autostart, which it does by creating = the .desktop file in ~/.config/autostart However, this has the wrong exec l= ine, getting the -real script instead of syncthing-gtk. This won't work as = it needs to be run as syncthing-gtk. Namely, it produces: Exec=3D/gnu/store/vf5h9jqhq40x8r46afaa0jgw7awg1361-syncthing-gtk-0.9.4.4-1.= c46fbd8/bin/.syncthing-gtk-real Instead of Exec=3D/gnu/store/vf5h9jqhq40x8r46afaa0jgw7awg1361-syncthing-gtk-0.9.4.4-1.= c46fbd8/bin/syncthing-gtk This is due to syncthing-gtk getting its executable name to write to the .d= esktop file in get_executable(): https://salsa.debian.org/debian/syncthing-= gtk/-/blob/master/syncthing_gtk/tools.py#L409 where due to wrapping it will= find something that won't work when run directly. How should this be solved in Guix? Should we patch this part of the code to= explicitly rewrite the path to have "syncthing-gtk" instead of ".syncthing= -gtk-real"? Related would be the discussion at https://lists.gnu.org/r/guix= -devel/2021-09/msg00088.html which I will message separately. Thanks, John