core-agent-linux/qubes-rpc/qubes-open
Marek Marczykowski-Górecki 0211ea5d1d
Move opening file viewer/editor into separate shell script
No functional change.

This will make it easier to switch the tool (without recompiling
vm-file-editor), or even use differrent tools depending on some
conditions.

QubesOS/qubes-issues#1621
2016-02-01 12:17:15 +01:00

10 lines
271 B
Bash

#!/bin/sh
if [ -r /etc/profile.d/qubes-session.sh ]; then
. /etc/profile.d/qubes-session.sh
fi
MIMEINFO_DATABASES="/usr/share/mime:/usr/local/share/mime:$HOME/.local/share/mime:/usr/share/qubes/mime-override"
exec mimeopen -n --database "$MIMEINFO_DATABASES" "$@"