#!/bin/sh

# Keep the proprietary application's settings separate from Plasma's current
# Qt configuration.
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-${HOME}/.config}/lightscribe-simplelabeler"
export XDG_CONFIG_HOME

# Use the private, modernized Qt4 runtime built specifically for SimpleLabeler.
# Do not expose it globally or mix it with a system Qt installation.
LD_LIBRARY_PATH="/opt/lightscribe/SimpleLabeler/lib32:/opt/lightscribe/lib32${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
export LD_LIBRARY_PATH
unset QT_PLUGIN_PATH

cd /opt/lightscribe/SimpleLabeler || exit 1
exec ./SimpleLabeler -style plastique -font "DejaVu Sans,8" "$@"
