From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oDYyAUOnK2HE5wAAgWs5BA (envelope-from ) for ; Sun, 29 Aug 2021 17:26:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id mPdGOEKnK2HsbAAAbx9fmQ (envelope-from ) for ; Sun, 29 Aug 2021 15:26:58 +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 49A8113235 for ; Sun, 29 Aug 2021 17:26:58 +0200 (CEST) Received: from localhost ([::1]:43890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKMi1-0004za-Br for larch@yhetil.org; Sun, 29 Aug 2021 11:26:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKMeB-0003NY-AR for help-guix@gnu.org; Sun, 29 Aug 2021 11:23:00 -0400 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:45667) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKMe5-0000GD-8M for help-guix@gnu.org; Sun, 29 Aug 2021 11:22:55 -0400 Received: by mail-ed1-x534.google.com with SMTP id g22so17655413edy.12 for ; Sun, 29 Aug 2021 08:22:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=m5ifv5N9a3GtYoFACMi5OaRCdNVmVACMGMq++RmDHwc=; b=N1eLFwPrcGzTRfZk1sgxBHDE38MN1j3LqHYBR6VxJtMxv1RkOczAxl0g1Ko4hEI+Fw yNiPb63magzs8yhzwBV/PhgDpk4LzJ41Qpfjee7OWucFRiSbaveSGwAZFsB6zEE6Vs+q cPk9r8l/cDIxKgjpsLIisN0ItVe1maEfauU386Sa9iLEEPgqmdpWLiW5fptGPPI5KO8V BxGiZcRE2cHvxt9Df6c/bjwOyM3JxBV4GZaN6Ni4fm2T8aASoGd0RGspwmWmqFKB6Eev gYEd/ocLF9m1mLr5X8GIUJfhxAw/+oLuZV0kPW1YnoB/4lUIHqb5c565j7YVkcRKH+S6 ZN2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=m5ifv5N9a3GtYoFACMi5OaRCdNVmVACMGMq++RmDHwc=; b=VlifPb/Fb6/QJQcjUzAl8MaphgALrWFoaXZ5bEtUa2WtWy4l2HyQEXvrwo3iXQkctZ cZrb/hmdntMtPhad4S03H73JHjbpE8WLiS42+p63L1HFkkCuQaTQPVuZRx0O2DwcJ/Uj 3NHVYd66e33b5hIWLmmL6wjJxjn8hsQz4f8xzmTV8JbUbHStjAY2rW1MiijCEQ4SMMmq x8OviYl4KY10U4Y6Nlu8FwersAHpNFc/Et5zSl83d9IYAsbStC3juXxgUOdDIUNmZt/J y1GTFvZ2C7SPeRMrmz7l2N+LLOnrA6kScNSg238TILAyVloVw/kqzmmJtiWTXLJyQoor befA== X-Gm-Message-State: AOAM530ZqLxkb2UOoi+ADAbZoMvQvCc9/Hu0yVdCr8oQpzbA0yHmEKTg 38HZjz0GmT2NyYUyT02YuxFOZfPgdu4ohZTcGoQ= X-Google-Smtp-Source: ABdhPJz8NEfoPWwLOKQ65AnTAegrlazgzKiO6f0EcojLtUbNAhiUCS3Wjf4alwCsJUlpNngcieyvxKYoWxaHfK+Fwzs= X-Received: by 2002:a05:6402:4cf:: with SMTP id n15mr20079463edw.269.1630250571534; Sun, 29 Aug 2021 08:22:51 -0700 (PDT) MIME-Version: 1.0 References: <20210829135351.t74ak2maimzfckro@pelzflorian.localdomain> <20210829142808.7wsitnwrmsxudynn@pelzflorian.localdomain> <20210829144200.3rzxztcm7q4z2hkq@pelzflorian.localdomain> In-Reply-To: <20210829144200.3rzxztcm7q4z2hkq@pelzflorian.localdomain> From: Antwane Mason Date: Sun, 29 Aug 2021 11:22:40 -0400 Message-ID: Subject: Re: Udev Rule Not Triggered To: "pelzflorian (Florian Pelz)" Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=ad.mason1413@gmail.com; helo=mail-ed1-x534.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630250818; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=RV6+aAyQfKC6g0EV+mHfm2VrE39vczEx61GGSytWMJc=; b=FCPtqViPnu8ss1fuTxxhn4GBGFCqkTH89IbuSiHN0bLcGKMfuommDw39u73Ni6lLmqyKuG tqo5t4WZ30TeSFFGTmraYwD7v+9hv1VRPm8a7yPXYknYj7qVl2G/Ogw5aKl/AMIVTpNOK3 fkONcS7P9EJFBIIfO0ibNIFftKVhcrO3+xFJGX2QkGg4raK7V4IZVk0l94UoOFkqKdLBKr C56YA6GC1hrSDvPvHQqkp/bUHwjFE51Aa7jdSTvjRLfcMlXaqj/On25zrj/ZqExmA+O1Dj 5GAfejePT0fszGupNFz/tJ7NmOUtdrD3OqakDJAwADEW6wTSV5knfk4vscqbDQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630250818; a=rsa-sha256; cv=none; b=cjUIZvUC24yWeAg7NqZRgTOdNCpG+J8eLu4B4PeFbXqQcyvf5WiM4uf0e0IX5UXqyb4zrK XewOMXgJMYkvUe0ASRyR3HBKL/PpqBCgzG24l7qiKgJZVn3F5N7uSCo98b7CDVwI8XKxf3 AsBTP2nY/NvItDb2MPM2AMng2k7wAiU9jtlaCeKVrv0YeC5sXnTKelJWkVcVUhi4S2LVs8 YiZRIDFEbPkwyfc/1PS37RtW9GQytQbhP7H6IdgGdb7Z8UEwjaqPUK+JFvWLdjVPfI2q7x qwnbqF/jQWWU+HWo7Vhq61iiatYOkA6aRpJNQ9sS6XdmZDPeGPgpjJ0mxnAAwQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=N1eLFwPr; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: 0.17 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=N1eLFwPr; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 49A8113235 X-Spam-Score: 0.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: XmxYwsJoDEkz Thanks for the clarification. I changed the code to use string-join. However, the rule is still not running after doing a system reconfigure and restarting computer. Does anyone know the environment variables that control finding udev rules? I'm wondering if there is a problem there. Regards, Antwane On Sun, Aug 29, 2021 at 10:42 AM pelzflorian (Florian Pelz) < pelzflorian@pelzflorian.de> wrote: > On Sun, Aug 29, 2021 at 04:28:08PM +0200, pelzflorian (Florian Pelz) wrot= e: > > > (string-append > > > "ACTION=3D=3D\"add\", SUBSYSTEM=3D=3D\"usb\", " > > > "ATTR{product}=3D=3D\"Example\", " > > > "RUN+=3D\"/path/to/script\""))) > > > > The difference is that the manual uses spaces at the end of each > > string except the last. > > > > You can use string-append instead of string-join, but then you need a > > space at the end of the strings. > > P.S. Or for testing just use one big one-line string instead: > > (define %onlykey-udev-rule > (udev-rule > "49-onlykey.rules" > "ATTRS{idVendor}=3D=3D\"1d50\", ATTRS{idProduct}=3D=3D\"60fc\", > ENV{ID_MM_DEVICE_IGNORE}=3D\"1\" ATTRS{idVendor}=3D=3D\"1d50\", > ATTRS{idProduct}=3D=3D\"60fc\", [=E2=80=A6]" > )) > > You can also use newlines in the string if syntax requires it. > > Regards, > Florian >