Re: Modifying the environment
Ted Stern <[email protected]>
| Newsgroups | gmane.compw.window-managers.windowmaker.user |
|---|---|
| Organization | Cray Inc. |
| Message-ID | <[email protected]> |
On 16 Jun 2005 at 11:01 UTC-0700, Martin Gagnon wrote:
> Similar idea, I just think about something, but I never try it. It
> should work.
>
> In your .xinitrc or whatever you use, call a script that look like that:
>
> ---->
> #!/bin/sh
>
> while [[ 0 == 0 ]]; do
> ~/.environment.sh
> wmaker
> done
> <----
The '[[ 0 == 0 ]]' syntax is overkill, and is not Bourne-shell
compatible. It happens to work because your /bin/sh is really running
bash/ksh/zsh or something with Korn shell extensions.
This isn't time critical, so you can do
while true ; do
...
done
for an infinite loop.
-- Ted
>
> It will make wmaker restart automaticly after it exit, after it load
> your environment variable. That way, on your wmaker menu, the "Exit"
> will restart wmaker after execution of ".environment.sh", you can rename
> the "Exit" menu item to "restart" and make another "Exit" menu item that
> will kill the script that call wmaker from the infinite loop.
>
> It look like a weird solution, seems to do exactly what you need. (if
> it's work :p )
>
> good luck.
>
> Martin
>
>
> On Thu, Jun 16, 2005 at 04:25:55PM +0100, Glenn Morris wrote:
>> Jim Knoble wrote:
>>
>> > (d) Don't use the WindowMaker executable directly. Write a wrapper script
>> > around .../wmaker which sets environment variables, either within the
>> > script or by sourcing a file such as ~/.environment.sh. Then, use
>> > something like 'selectwm':
>>
>> That's an interesting idea, thank you.
>>
>> So, basically, there's no existing functionality in WM for doing this,
>> but there are various tricks one can try.
>>
>> I sort of feel that any program that's used to launch a bunch of other
>> programs ought to offer an easy way to modify its (and hence their)
>> environment(s), as shells do. Maybe I'll submit a feature request
>> using the funky WM bug tracker... well, if it existed I might... ;)
>> _______________________________________________
>> INFO: https://windowmaker.org/lists/listinfo/wm-user
>> ARCHIVE: https://windowmaker.org/lists/archive/wm-user/
>> FAQ: http://windowmaker.org/faq.html
> _______________________________________________
> INFO: https://windowmaker.org/lists/listinfo/wm-user
> ARCHIVE: https://windowmaker.org/lists/archive/wm-user/
> FAQ: http://windowmaker.org/faq.html
--
Ted Stern Applications Group
Cray Inc. office: 206-701-2182
411 First Avenue South, Suite 600 cell: 206-383-1049
Seattle, WA 98104-2860 FAX: 206-701-2500
Frango ut patefaciam -- I break so that I may reveal
(The Paleontological Society motto, equally apropos for debugging)
_______________________________________________
INFO: https://windowmaker.org/lists/listinfo/wm-user
ARCHIVE: https://windowmaker.org/lists/archive/wm-user/
FAQ: http://windowmaker.org/faq.html