On Thu, 28 Sep 1995, Dave Lane wrote:
>
> 1. my FvwmButtons (formerly GoodStuff) and some menu items no longer
> launch things like they did in version 1.24. When I hit a button defined
> as follows in my .fvwmrc
>
> *FvwmButtons XEmacs emacs.xpm Exec "" (cd /usr/khoros/res/tg; xemacs &)
>
> I get the following error:
>
> /bin/sh: syntax error near unexpected token `(cd'
> /bin/sh: -c: line 1: `"" (cd /usr/khoros/res/tg; xemacs & )
Try removing the quotes "".
*FvwmButtons XEmacs emacs.xpm Exec (cd /usr/khoros/res/tg; xemacs &)
In fvwm 1.24r, the quotes indicate that the button should be popped back out
without waiting for a window with a specific class/name to appear but
this seems to have changed in pre 2.0.
>
> This used to work no problem. A similarly defined menu item also has
> problems:
>
> AddToMenu "Editors" "Text..." Title
> + "Xemacs" Exec exec "(cd /usr/khoros/res/tg; xemacs &)"
>
> results in
>
> exec: /var/X11R6/lib/fvwm-2.0/fvwm/(cd /usr/khoros/res/tg; xemacs &):
> cannot execute: No such file or directory
In this case, try removing the quotes and the second exec.
AddToMenu "Editors" "Text..." Title
+ "Xemacs" Exec (cd /usr/khoros/res/tg; xemacs &)
According to the code, fvwm does an execvp of /bin/sh passing -c
as the first argument to sh and whatever follows Exec as the second argument
to sh and that explains this behavior.
Try typing /bin/sh -c 'exec "(cd /usr/khoros/res/tg; xemacs &)"' at your
shell prompt to reproduce the problem.
--
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 Wed Sep 27 1995 - 21:30:28 BST