Re: FVWM: Emacs does not print when started from FVWM-Buttons

From: Kendrick Vargas <kvarga01_at_fiu.edu>
Date: Tue, 13 May 1997 22:18:33 -0400 (EDT)

On Wed, 14 May 1997, Andreas Schumann wrote:

> When I start Emacs from my button bar
>
> *FvwmButtons (Title "Emacs", Action `Exec emacs &', Icons emacs.xpm)
>
> the print function in Emacs does not work. Normally my environment is
> set in /etc/csh.cshrc to (using tcsh)
>
> setenv PRINTER "dj500"
>
> in order to print from a C-Shell or a program started from a C-Shell.
> However, this setting is obviously not available for programs started
> from the button bar?
>
> Does anybody know how to solve this problem?

Well, I guess it would be solved by the window manager making available to
the programs, all the environments that it has available to itself as
defined by the shell that starts the window manager... What I mean is that
the .xsession or .xinitrc or WHATEVER that calls fvwm2 is simply a shell
script, and if you set environments within that shell script, fvwm2 should
make those environments available to the programs that fvwm2 starts...
Currently, only a few environments are made available to programs...
$HOME, $PATH, $LD_LIBRARY_PATH, and a few other vital ones...

What you could do is create a little wrap around shell script to run all
your programs... If you use the cshell by default, it could look like
this:

------ Begin CSH shell script -----

#!/bin/csh -f
# This is a csh wrapper to start an X app with certain default system
# environments

# The following sources the system default .cshrc
source /etc/csh.cshrc

# Here we add any other possibly required miscellaneous variables

#setenv ENVIRONMENT blah

# Here we execute whatever arguments are thrown at us...

exec $*

----- end CSH shell script -----

A similar /bin/sh script would be easy. Simply throw this into
/usr/X11/bin (for example called fXrun -- for fvwm2 X run, or something)
and then in your .fvwm2rc, call programs with it:

+ "Emacs" Exec exec fXrun emacs --someoption \
                                 --someotheroption &
+ "xv" Exec exec fXrun xv &

and that'd be it...
                        -peace

--- BEGIN GEEK CODE BLOCK ------------+-----------
GAT d- s:+ !a C+(+++) UI/L/S/B++(+++) | "In the morning glad I see
P>+ L+(++) E---- W+++ N+ o? K? w++++ | My foe outstrech'd beneath the tree."
O--- M-- V PS+++_at_ PE Y-- PGP+ t++ 5 | -The Poison Tree
X++ R- tv+ b DI++ D+ G e>* h*(!) r- | William Blake
y*(+) ------ END GEEK CODE BLOCK -----+

--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Tue May 13 1997 - 21:18:48 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST