#!/bin/bash
# WARNING : modifying this file might results in parts of RDM not working as intended

export GDK_BACKEND=x11
export DOTNET_EnableWriteXorExecute=0

# Check if running in flatpak 
if [ -n "$FLATPAK_ID" ]; then
    exec /app/lib/devolutions/RemoteDesktopManager/RemoteDesktopManager "$@"
else
    exec /usr/lib/devolutions/RemoteDesktopManager/RemoteDesktopManager "$@"
fi
