Re: Modifying the environment

Glenn Morris <[email protected]>
Newsgroups gmane.compw.window-managers.windowmaker.user
Message-ID <[email protected]>
Thanks for the suggestions, everyone.

Jim Knoble wrote:

> Several options:
>
>     (a) If you're using a genuine xterm, you can start them with the
>         '-ls' option, which causes the shell they start to be a "login"
>         shell.
[...]
>     (b) Some shells (notably bash, csh, tcsh, sometimes pdksh, maybe
>         zsh) read an "interactive" startup file as well, in which case

I don't really like either of these options (maybe this makes the
problem my own fault!). I believe env-vars belong in .profile rather
than .bashrc, and I also don't like making every terminal a login one
(because it's basically overkill).

And of course neither of these approaches work for things like
editors, web browsers, etc, started directly from the window manager.

>     (c) Don't use applications directly.  Write "wrapper" scripts which
>         set environment variables from a file (or directory) in your
>         home directory.

Oof. I was really hoping for a general, simple solution - a "setenv"
command for WM, basically. Emacs has one... :)
_______________________________________________
INFO: https://windowmaker.org/lists/listinfo/wm-user
ARCHIVE: https://windowmaker.org/lists/archive/wm-user/
FAQ: http://windowmaker.org/faq.html
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.