FreeRDP/packaging/flatpak/freerdp.sh
Armin Novak 84d4ff0f0f Updated flatpak build
Added startup script checking if to run X11 or wayland.
2019-01-22 15:23:59 +01:00

19 lines
352 B
Bash
Executable File

#!/bin/sh
if [ -z $XDG_SESSION_TYPE ];
then
echo "XDG_SESSION_TYPE undefined"
exit -1
elif [ "$XDG_SESSION_TYPE" = "wayland" ];
then
echo "wayland $(which wlfreerdp)"
wlfreerdp $@
elif [ "$XDG_SESSION_TYPE" = "x11" ];
then
echo "X11 $(which xfreerdp)"
xfreerdp $@
exit $rc
else
echo "XDG_SESSION_TYPE $XDG_SESSION_TYPE not handled"
exit -1
fi