On Sat 31 Mar 2018 at 10:49:47 -0400, Steve Litt wrote: > On Fri, 30 Mar 2018 23:38:24 +0100 > Aaron Sloman <[email protected]> wrote:
> > Would it be possible for CTWM users to extend the functionality
> > of .ctwmrc with an environment section, e.g., by analogy with 'Color:'
> >
> > Something like:
> >
> > Environment_extensions:
> > {
> > XDG_CURRENT_DESKTOP GNOME
> > PATH ...
> > }
> >
> > so that all commands invoked will from ctwm will have the required
> > environment-extensions.
>
> I'd argue against doing this on general principle, because what it's
> really doing is complexifying ctwm ...
What you can do instead: in the script where you call ctwm, change it to
XDG_CURRENT_DESKTOP=GNOME ctwm ...the usual args...
Setting a shell variable on the command line before the command
basically exports it only to that command, and has no effect on the
shell's own environment and later commands.
This is true, I think, for at least the bourne-shell-like shells; if it
doesn't work, the same effect can be had with the env command:
env XDG_CURRENT_DESKTOP=GNOME ctwm ...the usual args...
-Olaf.
--
___ Olaf 'Rhialto' Seibert -- Wayland: Those who don't understand X
\X/ rhialto/at/falu.nl -- are condemned to reinvent it. Poorly.
signature.asc
Description: PGP signature
