all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jan Nieuwenhuizen <janneke@gnu.org>
To: Leo Prikler <leo.prikler@student.tugraz.at>
Cc: 48223@debbugs.gnu.org
Subject: bug#48223: EXWM knows nothing about Guix profiles
Date: Sat, 08 May 2021 10:56:15 +0200	[thread overview]
Message-ID: <875yzt7geo.fsf@gnu.org> (raw)
In-Reply-To: <875yzuwe2i.fsf@gnu.org> (janneke@gnu.org's message of "Fri, 07 May 2021 21:15:17 +0200")

[-- Attachment #1: Type: text/plain, Size: 1292 bytes --]

> Leo Prikler <leo.prikler@student.tugraz.at> writes:

Hello again,

>> I think the launcher that we install in the install-xsession does not
>> do sufficient work to set up the environment variables of the session
>> appropriately.  In particular, I think it should source /etc/profile
>> prior to running Emacs.
>>
>> WDYT?
>
> I think this is a very good idea.

To follow-up on this: at first glance sourcing /etc/profile seemed to
fix my problem.  However, I am calling some scripts from Emacs that need
my ~/.bash_profile to be sourced too.

So this got me wondering, something has definately changed here.
Before, this used to work OOTB.  Any ideas what may have changed?

BTW, I only tested with slim

--8<---------------cut here---------------start------------->8---
(service slim-service-type
  (slim-configuration
   (auto-login? #t)
   (allow-empty-passwords? #t)
   (default-user "janneke")
   ;;(auto-login-session (file-append emacs-exwm "/bin/exwm"))
   (auto-login-session "/home/janneke/bin/exwm")
   (xorg-configuration
    (xorg-configuration
     (keyboard-layout keyboard-layout)
     (server-arguments '("-listen" "tcp"))))))))
--8<---------------cut here---------------end--------------->8---

and now use the attached exwm, which works OK for me.

Greetings,
Janneke


[-- Attachment #2: exwm --]
[-- Type: application/octet-stream, Size: 419 bytes --]

#! /usr/bin/env bash

# source /etc/profile
source /home/janneke/.bash_profile

export EXWM=janneke

xhost +SI:localuser:$USER
dbus-launch emacs "$@" --eval '(cond ((file-exists-p "~/.exwm") (load-file "~/.exwm")) ((not (featurep (quote exwm))) (require (quote exwm)) (require (quote exwm-config)) (exwm-config-default) (message (concat "exwm configuration not found. " "Falling back to default configuration..."))))' 

[-- Attachment #3: Type: text/plain, Size: 152 bytes --]


-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com

  reply	other threads:[~2021-05-08  8:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-04 11:37 bug#48223: EXWM knows nothing about Guix profiles Leo Prikler
2021-05-07 19:15 ` janneke
2021-05-08  8:56   ` Jan Nieuwenhuizen [this message]
2021-05-08  9:26     ` Leo Prikler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875yzt7geo.fsf@gnu.org \
    --to=janneke@gnu.org \
    --cc=48223@debbugs.gnu.org \
    --cc=leo.prikler@student.tugraz.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.