/usr/bin/hoteldruid-launcher is in hoteldruid 2.1.0-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | #!/bin/sh
# Script to launch HotelDruid in a browser. The default browser will be
# firefox/iceweasel (supports html5 drag and drop), you can change it in the
# configuration file sourced below. This script is also needed to add
# menu entries without triggering lintian warnings (command not in package).
# Configuration file
. /etc/hoteldruid/launcher_config
if [ -n "$1" ]
then
if [ $1 = "-v" ] || [ $1 = "--version" ]
then
echo -e "\nHotelDruid launcher script version 0.1\n\n";
exit 0
fi
if [ $1 = "-h" ] || [ $1 = "--help" ]
then
echo -e "\nSee /etc/hoteldruid/launcher_config for configuration options.\n\n";
exit 0
fi
fi
if [ -n "$DISPLAY" ]
then
if [ -x "$HOTELDRUID_XBROWSER" ]
then
$HOTELDRUID_XBROWSER $HOTELDRUID_URL &
else
if [ -x "/usr/bin/xdg-open" ]
then
/usr/bin/xdg-open $HOTELDRUID_URL
else
if [ -x "/usr/bin/sensible-browser" ]
then
/usr/bin/sensible-browser $HOTELDRUID_URL &
else
if [ -x "/usr/bin/x-www-browser" ]
then
/usr/bin/x-www-browser $HOTELDRUID_URL &
else
if [ -t 1 ]
then
if [ -x "/usr/bin/www-browser" ]
then
/usr/bin/www-browser $HOTELDRUID_URL
else
echo "Sorry, no browser found."
exit 1
fi
else
exit 1
fi
fi
fi
fi
fi
else
if [ -t 1 ]
then
if [ -x "/usr/bin/www-browser" ]
then
/usr/bin/www-browser $HOTELDRUID_URL
else
echo "Sorry, no browser found."
exit 1
fi
else
exit 1
fi
fi
exit 0
|