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

From: sumeet singh <sumeet_at_iss.nus.sg>
Date: Wed, 14 May 1997 10:06:13 +0800 (SGT)

>
> Hi,
>
> I'm running Redhat LINUX from an Intel Pentium using FVWM2.
>
> 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?
>
> Any help is appreciated!
>
> Andreas Schumann
> Department of Mechanical Engineering
> Queen's University
> Kingston, Ontario, Canada
> K7L 3N6
> e-mail: schumann_at_me.queensu.ca
>
>
>
>

        Instead of running emacs directly from the button run a
small script to do your environment setting and then to exec emacs.
It would be something like this.

*FvwmButtons (Title "Emacs", Action `Exec em', Icons emacs.xpm)

chmod u+x em

where em is a file like:

#! /bin/csh -f
setenv PRINTER "dj500"
exec emacs



-- 
Sumeet Singh, sumeet_at_iss.nus.sg, Institute of Systems Science, N.U.S.,
Singapore - 119597,Ph: 65-772 6728 (o),Fax: 65-7744990 (o).
--
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 - 20:58:45 BST

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