#!/bin/bash
# This is an universal script, allowing Firefox as localapp to launch applications to view
# clicked-upon files automatically without having to install these applications
# to the chroot. It calles ltsp-remoteapps remote-open.sh which has to be a script
# for handling any filetype, e.g. gnome-open or gvfs-open.
# the client chroot (ex: /usr/local/bin/remote-app.sh) and requires the server
# to enable remoteapps (lts.conf):
#
#    REMOTE_APPS = True
# Build path

FILE="$1"

# Invoke app on server pointing to path
/usr/bin/ltsp-remoteapps xdg-open "$FILE"

