termux-packages/x11-packages/openbox/scripts/openbox-autostart

24 lines
761 B
Plaintext
Raw Normal View History

2018-09-10 00:42:26 +02:00
#!/data/data/com.termux/files/usr/bin/sh
GLOBALAUTOSTART="/data/data/com.termux/files/usr/etc/xdg/openbox/autostart"
AUTOSTART="${XDG_CONFIG_HOME:-"$HOME/.config"}/openbox/autostart"
# Run the global openbox autostart script
if test -f $GLOBALAUTOSTART; then
sh $GLOBALAUTOSTART
elif test -f $GLOBALAUTOSTART.sh; then
sh $GLOBALAUTOSTART.sh
fi
# Run the user openbox autostart script
if test -f $AUTOSTART; then
sh $AUTOSTART
elif test -f $AUTOSTART.sh; then
sh $AUTOSTART.sh
fi
# Run the XDG autostart stuff. These are found in /etc/xdg/autostart and
# in $HOME/.config/autostart. This requires PyXDG to be installed.
# See openbox-xdg-autostart --help for more details.
/data/data/com.termux/files/usr/libexec/openbox-xdg-autostart "$@"