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 LHKsKfMB9V9+AgAA0tVLHw (envelope-from ) for ; Wed, 06 Jan 2021 00:18:59 +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 j0Y7JfMB9V8wBQAA1q6Kng (envelope-from ) for ; Wed, 06 Jan 2021 00:18:59 +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 E77369403CB for ; Wed, 6 Jan 2021 00:18:58 +0000 (UTC) Received: from localhost ([::1]:45188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwwXR-0003Ng-QI for larch@yhetil.org; Tue, 05 Jan 2021 19:18:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41540) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwwXJ-0003NY-Mg for help-guix@gnu.org; Tue, 05 Jan 2021 19:18:49 -0500 Received: from knopi.disroot.org ([178.21.23.139]:54884) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwwXG-0005C0-P5 for help-guix@gnu.org; Tue, 05 Jan 2021 19:18:49 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 2F9F555388; Wed, 6 Jan 2021 01:18:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mUhGDW6bzLmc; Wed, 6 Jan 2021 01:18:41 +0100 (CET) References: <48099c1e-63b9-d252-bb48-8c11f90a45ee@posteo.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1609892321; bh=EvNyG3XrB5q9dNX6dGGNisXSdryqWz3oN+EyIydrYiA=; h=References:From:To:Cc:Subject:In-reply-to:Date; b=EleIJlChbzHbqwpHE8Nrd+4nD+65qFprXI0cb/6hy13kNz6OSpY2mqpMNY5olDE6K kakpMp/GM7GjGQUOpIU67VFkfAirbXT4AsF8v38PDYzhVWp9auKtPsr2mZN8t91S8T JvxA1dcXCzCX2C9u4aYd+ZlScksH4wUi3Hp0HuUdAvFYdIpGOO54hlW1Hn5xWQzWJJ w51yFOqYIoBKRL/OcQQqV3ms03OG6CmkFis1zJaetyz7limsIXrA5G4SMW8nCHco5p S4SEQ5IpW9Nv1/3PRPAO2RiQPQQMbiD1KyNxaA42bd4EIMciq1LhD7cSTr5eAyHLU9 hNd+MizlyVAQA== From: Gary Johnson To: Olivier Rojon Subject: Re: EXWM: file or program not found, ls In-reply-to: <48099c1e-63b9-d252-bb48-8c11f90a45ee@posteo.net> Date: Tue, 05 Jan 2021 19:18:26 -0500 Message-ID: <87zh1mq5nx.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=178.21.23.139; envelope-from=lambdatronic@disroot.org; helo=knopi.disroot.org 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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 X-Migadu-Spam-Score: -2.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=EleIJlCh; dmarc=pass (policy=quarantine) header.from=disroot.org; 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: E77369403CB X-Spam-Score: -2.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: CFi/IBASuBdn Hi Olivier, I'm also on GuixSD, using EXWM as my window manager. It sounds like you have an issue with your PATH environment variable. I set my environment variables in ~/.bash_profile, so that they are automatically set on login and are therefore propagated to Emacs when it is started by EXWM. Here's an excerpt from my ~/.bash_profile to get you started: ##################################################################### # Shell variables export MYPROFILE=$HOME/.guix-profile GUIX_PROFILE=$MYPROFILE source $MYPROFILE/etc/profile export ASPELL_DICT_DIR=$MYPROFILE/lib/aspell export GIT_EXEC_PATH=$MYPROFILE/libexec/git-core export PATH=$MYPROFILE/bin:$MYPROFILE/sbin:$PATH export CPATH=$MYPROFILE/include${CPATH:+:}$CPATH export LIBRARY_PATH=$MYPROFILE/lib${LIBRARY_PATH:+:}$LIBRARY_PATH export LD_LIBRARY_PATH=$MYPROFILE/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH export PKG_CONFIG_PATH=$MYPROFILE/lib/pkgconfig:$MYPROFILE/share/pkgconfig${PKG_CONFIG_PATH:+:}$PKG_CONFIG_PATH export GIO_EXTRA_MODULES=$MYPROFILE/lib/gio/modules${GIO_EXTRA_MODULES:+:}$GIO_EXTRA_MODULES export ACLOCAL_PATH=$MYPROFILE/share/aclocal${ACLOCAL_PATH:+:}$ACLOCAL_PATH export NODE_PATH=$MYPROFILE/lib/node_modules${NODE_PATH:+:}$NODE_PATH # Remove duplicates from *PATH* variables export PATH=`awk -F: '{for(i=1;i<=NF;i++){if(!($i in a)){a[$i];printf s$i;s=":"}}}'<<<$PATH` export INFOPATH=`awk -F: '{for(i=1;i<=NF;i++){if(!($i in a)){a[$i];printf s$i;s=":"}}}'<<<$INFOPATH` export CPATH=`awk -F: '{for(i=1;i<=NF;i++){if(!($i in a)){a[$i];printf s$i;s=":"}}}'<<<$CPATH` export LIBRARY_PATH=`awk -F: '{for(i=1;i<=NF;i++){if(!($i in a)){a[$i];printf s$i;s=":"}}}'<<<$LIBRARY_PATH` export LD_LIBRARY_PATH=`awk -F: '{for(i=1;i<=NF;i++){if(!($i in a)){a[$i];printf s$i;s=":"}}}'<<<$LD_LIBRARY_PATH` export PKG_CONFIG_PATH=`awk -F: '{for(i=1;i<=NF;i++){if(!($i in a)){a[$i];printf s$i;s=":"}}}'<<<$PKG_CONFIG_PATH` export GIO_EXTRA_MODULES=`awk -F: '{for(i=1;i<=NF;i++){if(!($i in a)){a[$i];printf s$i;s=":"}}}'<<<$GIO_EXTRA_MODULES` export ACLOCAL_PATH=`awk -F: '{for(i=1;i<=NF;i++){if(!($i in a)){a[$i];printf s$i;s=":"}}}'<<<$ACLOCAL_PATH` export NODE_PATH=`awk -F: '{for(i=1;i<=NF;i++){if(!($i in a)){a[$i];printf s$i;s=":"}}}'<<<$NODE_PATH` ##################################################################### I also make ~/.bashrc a symlink to ~/.bash_profile since these variable definitions are idempotent. I don't do any other fancy magic with ~/.profile, ~/.xsession, or ~/.xinitrc other than using xsetroot, xset, setxkbmap, xrdb, and friends to tweak my X setup in .xsession and then call exwm on its final line. Hope that helps! Gary Olivier Rojon writes: > Hello everyone, > > I am on GuixSD, using EXWM as my window manager. Though I really > appreciate the way it works, it seems that it does not find many of > the programs which are required for emacs to function properly. > > I would like to, but cannot: > > * use dmenu and see (recently used) programs > * open dired in a specific folder > * open a file > * use run-geiser / geiser / guile / mit-scheme / ... > > > On the surface, most of these problems appear to be of the same > nature: in many cases, the error message is (translated from german)! > > "Searching for program: file or directory not found, $PROGNAME", where > $PROGNAME is one of the following: > > * ls (in case of dired) > * git (open a file) > * guile (run-geiser / guile) > > dmenu is a bit different, because while I can start it just fine via > keyboard shortcut, it finds only two programs, "env" and "sh". > > > I have been asking several times on #guix if anyone can help me, but > was not able to successfully put what I was told into practice. > > Essentially, I was told to "source /etc/profile". I tried to do that > for .bashrc and .profile, but that didnt help, because I dont have > similar problems in the command-line/shell, only in emacs. > > Then I was told to "source /etc/profile" from a file such as .xinitrc > / .xsessions, which I tried but which also didnt work because gdm > stayed in place via the system configuration (there has been a helpful > HOWTO by Alex Kost, which I might try as well if nothing else helps). > > Before writing, I have experimented with the (extra-arguments > '("source /etc/profile")) in the (xorg-configuration), but this led my > system to not start anymore, so I rolled back. > > > Any help or pointer is greatly appreciated. I hope I have provided the > necessary information, otherwise feel free to ask. > > Thank you guys in advance, so far I am stoked by how great a community > guix is, and how awesome guix itself is :) > > Greetings, > > Olivier -- GPG Key ID: 7BC158ED Use `gpg --search-keys lambdatronic' to find me Protect yourself from surveillance: https://emailselfdefense.fsf.org ======================================================================= () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Why is HTML email a security nightmare? See https://useplaintext.email/ Please avoid sending me MS-Office attachments. See http://www.gnu.org/philosophy/no-word-attachments.html