export GNOME_VFS_MODULE_PATH="$TOP/lib/gnome-vfs-2.0/modules"
# Set GTK theme (only if there is no .gtkrc-2.0 in the user's home)
- if [[ ! -e $HOME/.gtkrc-2.0 ]]; then
+ if [[ ! -e "$HOME/.gtkrc-2.0" ]]; then
# prepare the theme depending on OS X appearance settings
(
cd "$TOP/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/"
# This '#' needs to be escaped in pango.modules for Pango to work properly.
ESCAPEDTOP=`echo $TOP | sed 's/#/\\\\\\\\#/'`
- mkdir -p ${HOME}/.wireshark-etc
- sed 's|${HOME}|'"$HOME|g" "$TOP/etc/pango/pangorc" > ${HOME}/.wireshark-etc/pangorc
+ mkdir -p "${HOME}/.wireshark-etc"
+ sed 's|\\${HOME}|'"\"$HOME\"|g" "$TOP/etc/pango/pangorc" > "${HOME}/.wireshark-etc/pangorc"
sed 's|${CWD}|'"$ESCAPEDTOP|g" "$TOP/etc/pango/pango.modules" \
- > ${HOME}/.wireshark-etc/pango.modules
- cp -f "$TOP/etc/pango/pangox.aliases" ${HOME}/.wireshark-etc/
+ > "${HOME}/.wireshark-etc/pango.modules"
+ cp -f "$TOP/etc/pango/pangox.aliases" "${HOME}/.wireshark-etc/"
sed 's|${CWD}|'"$TOP|g" "$TOP/etc/gtk-2.0/gtk.immodules" \
- > ${HOME}/.wireshark-etc/gtk.immodules
+ > "${HOME}/.wireshark-etc/gtk.immodules"
sed 's|${CWD}|'"$TOP|g" "$TOP/etc/gtk-2.0/gdk-pixbuf.loaders" \
- > ${HOME}/.wireshark-etc/gdk-pixbuf.loaders
+ > "${HOME}/.wireshark-etc/gdk-pixbuf.loaders"
fi
exec "$CWD/$APPNAME-bin" "$@"
export VERSION=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 -d'.'`
# On Leopard, X11.app is installed by default, and will be started
-# automatically via launchd. On older systems, we need to start
+# automatically via launchd. On older systems, we need to start
# X11 ourself.
# For Panther and Tiger, start X11
if [[ $VERSION -le 4 ]]; then
- # FIXME apparently this removes the xterm that starts with X
- # from xinitrc but when is it really used? Should we modify
+ # FIXME apparently this removes the xterm that starts with X
+ # from xinitrc but when is it really used? Should we modify
# the .xinitrc of the user without warning?
ps -wx -ocommand | grep -e '[X]11' > /dev/null
- if [ "$?" != "0" -a ! -f ${HOME}/.xinitrc ]; then
- echo "rm -f ${HOME}/.xinitrc" > ${HOME}/.xinitrc
- sed 's/xterm/# xterm/' /usr/X11R6/lib/X11/xinit/xinitrc >> ${HOME}/.xinitrc
+ if [ "$?" != "0" -a ! -f "${HOME}/.xinitrc" ]; then
+ echo "rm -f \"${HOME}/.xinitrc\"" > "${HOME}/.xinitrc"
+ sed 's/xterm/# xterm/' /usr/X11R6/lib/X11/xinit/xinitrc >> "${HOME}/.xinitrc"
fi
# Start X11 and get DISPLAY
# Warn the user about time-consuming generation of fontconfig caches.
-test -f ${HOME}/.wireshark/.fccache-new || exit 12
+test -f "${HOME}/.wireshark/.fccache-new" || exit 12
BASE="`echo "$0" | sed -e 's/\/Contents\/Resources\/script/\//'`"