save2flash 854 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. #2007 Lesser GPL licence v2 (http://www.fsf.org/licensing/licenses/lgpl.html)
  3. #sends a request to /usr/sbin/savepuppyd to save the session.
  4. #v4.01 19may2008 BK: request now to /sbin/pup_eventd (savepuppyd is history).
  5. #v411 /tmp/snapmergepuppyrequest is processed in /sbin/pup_event_frontend_d. (from v403 i think)
  6. #101221 fix yaf-splash.
  7. #111012 remove LANG=C
  8. #export LANG=C
  9. export DISPLAY=':0'
  10. #LANG=C /usr/X11R7/bin/yaf-splash -display :0 -font "8x16" -outline 0 -margin 4 -bg yellow -text "NOTICE:
  11. /usr/lib/gtkdialog/box_splash -bg yellow -close never -text "NOTICE:
  12. Request to save current session is queued. Please wait, another message will popup when the saving occurs..." &
  13. RETVAL=$?
  14. YAFPID=$!
  15. touch /tmp/snapmergepuppyrequest
  16. while [ -f /tmp/snapmergepuppyrequest ];do
  17. sleep 1
  18. done
  19. [ $RETVAL -eq 0 ] && kill $YAFPID
  20. ###END###