[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A bug in a menu entry ?



-----BEGIN PGP SIGNED MESSAGE-----

On Thu, 9 Sep 1999, shaul wrote:

> My slink system has the following entry in its menu system:
> 
> [07:49:18 shaul]$ grep pstree .fvwm2/menudefs.hook 
> + "&pstree" Exec /usr/bin/X11/xterm -T "pstree" -e /usr/bin/pstree
> [07:53:10 shaul]$
> 
> The problem is that the xterm that is showing the pstree is closed
> immediately after pstree has terminated, which makes this entry
> useless. Am I right ?

Yeah, i think you're right. File a bug report against pstree, if one
hasn't been filed already?

> I tried to find an xterm switch which will instruct the xterm to stay
> even after the pstree has terminated, but I could not find one. Is
> there something of the sort ? Another option I tried is to modify the
> entry for something like
> 
>  + "&pstree" Exec /usr/bin/X11/xterm -T "pstree" -e "/usr/bin/pstree | less"
> 
> However, it does not work. Is there a way to solve it in this way ?

Note that you should copy the menufile (/usr/lib/menu/psmisc) to
/etc/menu, and edit the command in there. This way, your changes won't be
clobbered the next time update-menus is run.

Here's a hack that seems to work:
  /usr/bin/X11/xterm -T "pstree" -e sh -c '/usr/bin/pstree; head -1;'

However, it seems things can be fixed in a much more elegant way. The
menufile for pstree has two entries, one needs=text and one needs=x11. It
seems that placing the needs=x11 entry before the needs=text entry in that
file fixes the problem nicely.


- -- 
  finger for PGP public key.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBN9dYO77M/9WKZLW5AQExqgP/XWY6LI8bmwEsu3drOiPiZOtL1gx340KA
sc3XwVVjSvDq8kRMxYBXomdOQ9F4dRQYkzad+shaPfqLKGM8Qi2BL8ge2wbi85qJ
PJeClMDCS45nw58on/egVpJ3fN0vhmj20OPL708Rufx+Kh5Ucbww9vk8LpvW/ynJ
AQpOLdYqHfY=
=LmmE
-----END PGP SIGNATURE-----


Reply to: