HI Andrew,

On Thu, Feb 01 2024, Andrew Stubbs wrote:
> The manual suggests that "home-shell-profile-configuration" is the way
> to go, but there's no example given.

The home-shell-profile-service-type is the way to go, but due to the way
the service is included (as an essential service), you need to add items
to the configuration using a service extension.

> What's the correct way to do this, please?

The example you provided might look like this instead:

  (simple-service 'sourcing-xprofile home-shell-profile-service-type
                  (list (plain-file "shell-profile" "echo hi; source 
~/.xprofile")))

The items of the list can be any "file-like" gexp (e.g. the results of
local-file, mixed-text-file, file-append).

I hope that helps,

Carlo

Reply via email to