Hi,
I don’t know if this is the right place to ask, but here’s my problem.
I’ve defined a function to display number of new mail in my mailbox in an FvwmButton popup:
[code]DestroyFunc MailPopup
AddToFunc MailPopup
- I DestroyModuleConfig FvwmMail: *
- I *FvwmMail: Geometry 150x50-250+17
- I *FvwmMail: Rows 2
- I *FvwmMail: Back black
- I *FvwmMail: Fore green
- I *FvwmMail: Font “xft:Andale Mono:style=Roman:size=8:bold”
- I *FvwmMail: Frame 0
- I *FvwmMail: Padding 5 5
- I *FvwmMail: (1x1, Title “$0 messages in Mailbox”)
- I *FvwmMail: (1x1, Title “$1 messages in Perso”)
- I Module FvwmButtons FvwmMail
- I Schedule 5000 KillModule FvwmButtons FvwmMail
[/code]
I’ve made a script that check my maildir on a regular basis and the last lines of this script are:
if [ $total -gt 0 ]; then
FvwmCommand "MailPopup $general $perso"
fi
And basically, everything works fine, except that once in a while, I’ve got this message in my .xsession-errors:
FvwmMail: No buttons defined. Quitting
(and of course, no popup appears)
Do you have any ideas why this happens ? Because if I debug my script (which sh -x for example), the MailPopup is only called with two parameters…
TIA