2019-01-22 17:18:59 +03:00
|
|
|
#!/bin/sh
|
2023-12-21 23:50:18 +03:00
|
|
|
|
|
|
|
if [ -z ${FREERDP_SDL_OFF} ];
|
2019-01-22 17:18:59 +03:00
|
|
|
then
|
2023-12-21 23:50:18 +03:00
|
|
|
echo "SDL $(which sdl-freerdp)"
|
|
|
|
sdl-freerdp $@
|
2019-01-22 17:18:59 +03:00
|
|
|
exit $rc
|
|
|
|
else
|
2023-12-21 23:50:18 +03:00
|
|
|
if [ -z $XDG_SESSION_TYPE ];
|
|
|
|
then
|
|
|
|
echo "XDG_SESSION_TYPE undefined"
|
|
|
|
exit -1
|
|
|
|
elif [ "$XDG_SESSION_TYPE" = "wayland" ];
|
|
|
|
then
|
|
|
|
if [ -z $FREERDP_WAYLAND_OFF ];
|
|
|
|
then
|
|
|
|
echo "wayland $(which wlfreerdp)"
|
|
|
|
wlfreerdp $@
|
|
|
|
exit $rc
|
|
|
|
else
|
|
|
|
echo "X11 $(which xfreerdp)"
|
|
|
|
xfreerdp $@
|
|
|
|
exit $rc
|
|
|
|
fi
|
|
|
|
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
|
2019-01-22 17:18:59 +03:00
|
|
|
fi
|