+ I Wait TERM
+ I PaVuControl
+ I Wait "Volume Control"
-+ I FireFox
-+ I Wait "*Mozilla Firefox"
++ I FireFox-Wait
+ I GotoDeskAndPage 1 0 1
+ I TERM_KOI8
+ I Wait TERM
+ I GotoDeskAndPage 1 1 0
+ I Schedule 1000 GotoDeskAndPage 0 1 0
+DestroyFunc ResumeFunction
+AddToFunc ResumeFunction
++ I GotoDeskAndPage 0 0 0
++ I TERM_KOI8
++ I Wait TERM
++ I PaVuControl
++ I Wait "Volume Control"
++ I Exec $HOME/current/projects/xsetbg/print-filename.py | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
++ I Wait gxmessage
++ I None ("*Mozilla Firefox") FireFox-Wait
++ I GotoDeskAndPage 0 1 0
############################################################################
# COMPLEX FUNCTIONS
DestroyFunc FireFox
AddToFunc FireFox I GotoDeskAndPage 1 0 0
-+ I Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser firefox
++ I Exec if ! pgrep firefox >/dev/null; then LC_CTYPE=ru_RU.KOI8-R exec start-browser firefox; fi
+
+DestroyFunc FireFox-Wait
+AddToFunc FireFox-Wait I FireFox
++ I Wait "*Mozilla Firefox"
DestroyFunc Gajim
AddToFunc Gajim I GotoDeskAndPage 1 1 0