Re: Accessing gnome utilities via ctwm in Fedora27

Rhialto <[email protected]>
Newsgroups gmane.comp.window-managers.ctwm
Message-ID <[email protected]>
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 (application/pgp-signature, 455 B)
-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJav8nIAAoJEJmJxkVhw/vTrZIH/2Ioi2E/r9KcdsNlcleE2kB5
pX49dk3IySLUocaadQWEJ+RJYkikALCxUpVi0mqf904NZxb7GSvWmnQCNJSLgkMz
3x9LgRe0fVSMpAFIgEX3JI+73fY6nBd7BV2Yp2t6y+y6M+FgKQccoLhzB52wS/gS
sLvNYcABjUFVY1J90EoYxaorBsyF3CIvelijFVowh5Vk+cAwrWV7W+mBuDOcmFyL
BgPE9c8opVZtPyy5phDDe6Rt/Hs1Ly9Zhyv7q0qbXFzxhrwRw6pN7eoXCwWUjD3r
IcrtcmxBhjq11ifPRYBA8NabB28wr22HkbiqUJUmXf+fZ6Svd2dIlIMh2b/J41Q=
=5smg
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.