home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / root / usr / sbin / wmstart < prev    next >
Text File  |  2006-11-29  |  621b  |  23 lines

  1. #!/bin/sh
  2.  
  3. # /.../
  4. # Find out which language SaX2 will use for
  5. # the user interface:
  6. # ---
  7. tmplang=${LANGUAGE-${LC_ALL-${LC_MESSAGES-${LANG-en_US}}}}
  8.  
  9. # /.../
  10. # run fvwm with LC_ALL set to a suitable UTF-8 locale for that language
  11. # because
  12. # - display the UTF-8 texts received from SaX2 correctly
  13. # - make the alias "sans-serif" from fvwmrc expand to a suitable font
  14. #   for the language
  15. # ---
  16. export LC_ALL=`echo ${tmplang} |sed -e 's/[.@:].*//'`.UTF-8
  17.  
  18. FVWMRC=/usr/share/sax/api/data/fvwmrc.sax
  19. TWMRC=/usr/share/sax/api/data/twmrc.sax
  20.  
  21. which fvwm2 >/dev/null 2>&1 && exec fvwm2 -f $FVWMRC "$@"
  22. exec twm -f $TWMRC "$@"
  23.