Package: fvwm Version: 1:2.5.30.ds-1 Severity: minor
Dear Sir, mplayer causes the crash of fvwm if used into fvwmscript I found a solution ! I can use aplay instead of mplayer and it works. Is it a bug of mplayer or fvwm,a ctually ? Please find the code: of the fvwmscript WindowTitle {Gmail} WindowSize 22 26 Font "Shadow=1 se:xft:HandelGothic BT:encoding=iso10646-1:size=9" Colorset 31 ## thank you seba Init Begin ChangeIcon 1 plain/thunderbird.png End PeriodicTasks Begin If (RemainderOfDiv (GetTime) 60)==0 Then Begin Set $newFetchMail = (GetOutput {exec sh $HOME/.fvwm/scripts/checkemail.sh } 1 -1) Set $noEmail = (GetOutput {exec echo "No email" } 1 -1) If $newFetchMail == $noEmail Then ChangeIcon 1 plain/thunderbird.png Else Begin ChangeIcon 1 plain/thunderbirdemail.png End End End Widget 1 Property Type ItemDraw Size 22 26 Position 0 0 Font "shadow=0 se:xft:Verdana:size=7:color=d5dee7" Flags NoFocus NoReliefString Main Case message of SingleClic: Begin #Do {exec sh $HOME/.fvwm/scripts/checkemail.sh --checking } #ChangeIcon 1 plain/thunderbird.png Set $newFetchMail = (GetOutput {exec sh $HOME/.fvwm/scripts/checkemail.sh --checking } 1 -1) Set $noEmail = (GetOutput {exec echo "No email" } 1 -1) If $newFetchMail == $noEmail Then ChangeIcon 1 plain/thunderbird.png Else Begin ChangeIcon 1 plain/thunderbirdemail.png End #Do {exec sh $HOME/.fvwm/scripts/checkemail.sh --open } End End End of the script #!/bin/bash if [ "$1" = "--notify" ] ; then MSG=`cat $HOME/.fvwmnotifymeemailsound` if [ "$MSG" = "1" ] ; then `cat $HOME/.fvwmemailcheckercmd | head -n 1` mplayer $HOME/.fvwm/sounds/notify.wav >/dev/null 2>&1 notify-send -i $HOME/.fvwm/images/notification/newemail.png "Email" "You have a new Email [Inbox: $EMAILNRLAST emails] " #echo "New email" #`cat $HOME/.fvwmemailcheckercmd | tail -n 1` fi rm $HOME/.fvwmnotifymeemailsound exit fi if [ "$1" = "--install-led" ] ; then echo "xset led 3" > $HOME/.fvwmemailcheckercmd echo "xset -led 3" >> $HOME/.fvwmemailcheckercmd echo "Install Led Installed. " cat $HOME/.fvwmemailcheckercmd exit fi if [ "$1" = "--uninstall-led" ] ; then echo "Install Led Un-nstalled. " rm $HOME/.fvwmemailcheckercmd cat $HOME/.fvwmemailcheckercmd exit fi if [ "$1" = "--ledon" ] ; then #xset led 3 `cat $HOME/.fvwmemailcheckercmd | head -n 1` exit fi if [ "$1" = "--ledoff" ] ; then #xset -led 3 `cat $HOME/.fvwmemailcheckercmd | tail -n 1` exit fi if [ ! -f $HOME/.muttrc ] ; then notify-send -i $HOME/.fvwm/images/notification/warning.png "Fvwm Email " "$HOME/.muttrc not present. Please create the file... (menu>configure)" exit fi if [ ! -f "$HOME/.fvwmemailclient" ] ; then echo " aterm -geometry 100x40 -e mutt " > "$HOME/.fvwmemailclient" fi if [ "$1" = "--configure" ] ; then thesubject=$(zenity --entry --title "Email client" --text "Enter the email client command" --entry-text "`cat $HOME/.fvwmemailclient`") ; echo "You entered: $thesubject" [ "$thesubject" = "" ] && exit if [ "$thesubject" != "`cat $HOME/.fvwmemailclient`" ] ; then echo "$thesubject" > "$HOME/.fvwmemailclient" LDKJF="Changed. " notify-send -i $HOME/.fvwm/images/notification/email.png "Fvwm Email Client" "$LDKJF Set to `cat $HOME/.fvwmemailclient`." else notify-send -i $HOME/.fvwm/images/notification/email.png "Fvwm Email Client" "No changed made. Command= `cat $HOME/.fvwmemailclient`." fi exit fi if [ "$1" = "--open" ] ; then notify-send -i $HOME/.fvwm/images/notification/email.png "Fvwm Email" "Opening the Email client" `cat $HOME/.fvwmemailclient` fi #killall -e fetchmail #killall -e fetchmail #MSG=`fetchmail -k | head -n 1 | cut -f1 -d" "` FETCH=`fetchmail -c` MSG=`echo "$FETCH" | cut -f1 -d" "` MSGSEEN=`echo "$FETCH" | cut -f2 -d"(" | cut -f1 -d" "` EMAILNRLAST=`cat $HOME/Mail/.emailnr` if [ ! -f $HOME/Mail/.notifyme ] ; then echo "1" > $HOME/Mail/.notifyme fi if [ "$1" = "off" ] ; then echo "0" > $HOME/Mail/.notifyme fi #################### notifysend notification # NOTIFYME NOTIFYME=`cat $HOME/Mail/.notifyme` # "$NOTIFYME" = "1" if [ "$1" != "--displayonly" ] && [ "$1" != "--fvwmicon" ] && [ "$1" != "--checking"] ; then if [ $MSG -gt $EMAILNRLAST ] ; then `cat $HOME/.fvwmemailcheckercmd | head -n 1` #mplayer $HOME/.fvwm/sounds/notify.wav >/dev/null 2>&1 aplay $HOME/.fvwm/sounds/notify.wav notify-send -i $HOME/.fvwm/images/notification/newemail.png "Email" "You have a new Email [$MSG/$MSGSEEN]." #echo "New email" #`cat $HOME/.fvwmemailcheckercmd | tail -n 1` fi fi ######################### ## bash echo something and led it if [ $MSG -gt $MSGSEEN ] ; then [ "$1" != "--fvwmicon" ] && echo "New email" [ "$1" = "--fvwmicon" ] && echo "SendToModule FvwmButtons-default ChangeButton Mamemail Icon plain/thunderbirdemail.png" if [ "$1" = "--checking" ] ; then notify-send -i $HOME/.fvwm/images/notification/newemail.png "Fvwm Email" "Checking mailbox... New Email in the mailbox [$MSG/$MSGSEEN]." aplay $HOME/.fvwm/sounds/notify.wav # >/dev/null 2>&1 fi echo "New" > $HOME/.fvwmnotifymeemail `cat $HOME/.fvwmemailcheckercmd | head -n 1` fi if [ "$MSG" = "$MSGSEEN" ] ; then [ "$1" != "--fvwmicon" ] && echo "No email" [ "$1" = "--fvwmicon" ] && echo "SendToModule FvwmButtons-default ChangeButton Mamemail Icon plain/thunderbird.png" if [ "$1" = "--checking" ] ; then notify-send -i $HOME/.fvwm/images/notification/email.png "Fvwm Email" "Checking mailbox... No Email [$MSG/$MSGSEEN]." #mplayer $HOME/.fvwm/sounds/notify.wav >/dev/null 2>&1 aplay $HOME/.fvwm/sounds/popup.wav fi echo "No" > $HOME/.fvwmnotifymeemail `cat $HOME/.fvwmemailcheckercmd | tail -n 1` fi ####################### ### for displayonly here if [ "$1" = "--displayonly" ] ; then echo "Emails: $MSG" fi echo "$MSG" > $HOME/Mail/.emailnr Kind regards -- System Information: Debian Release: 6.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages fvwm depends on: ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib ii libcairo2 1.8.10-6 The Cairo 2D vector graphics libra ii libfontconfig1 2.8.0-2.1 generic font configuration library ii libfreetype6 2.4.2-2.1 FreeType 2 font engine, shared lib ii libfribidi0 0.19.2-1 Free Implementation of the Unicode ii libglib2.0-0 2.24.2-1 The GLib library of C routines ii libgtk2.0-0 2.20.1-2 The GTK+ graphical user interface ii libice6 2:1.0.6-2 X11 Inter-Client Exchange library ii libncurses5 5.7+20100313-5 shared libraries for terminal hand ii libpng12-0 1.2.44-1 PNG library - runtime ii libreadline6 6.1-3 GNU readline and history libraries ii librplay3 3.3.2-12 rplay network audio system - share ii librsvg2-2 2.26.3-1 SAX-based renderer library for SVG ii libsm6 2:1.1.1-1 X11 Session Management library ii libstroke0 0.5.1-6 mouse strokes library -- runtime f ii libx11-6 2:1.3.3-4 X11 client-side library ii libxcursor1 1:1.1.10-2 X cursor management library ii libxext6 2:1.1.2-1 X11 miscellaneous extension librar ii libxft2 2.1.14-2 FreeType-based font drawing librar ii libxinerama1 2:1.1-3 X11 Xinerama extension library ii libxpm4 1:3.5.8-1 X11 pixmap library ii libxrender1 1:0.9.6-1 X Rendering Extension client libra ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime Versions of packages fvwm recommends: ii fvwm-icons 20070101-1 icon *.xpm files from fvwm develop ii libx11-protocol-perl 0.56-2 Perl module for the X Window Syste ii perl-tk 1:804.029-1+b1 Perl module providing the Tk graph Versions of packages fvwm suggests: ii cpp 4:4.4.5-1 The GNU C preprocessor (cpp) pn fvwm-themes <none> (no description available) ii m4 1.4.14-3 a macro processing language ii menu 2.1.44 generates programs menu for all me pn wm-icons <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org