Torade tk1 Ubuntu Gnome startup application not run

hi
i develop an opencv program in troadex tk1 with ubuntu gnome with jetpack
but when i put myprogram in startup application(.config/autostart) as .desktop file nothing happen and my application didnt run!!! i dont know why?
my application run easily via terminal by my self by this command (sudo ./myopencv)

HI @toradexvision

Could you provide the version of the hardware (including carrier board) and software of your module?

For running you application at start-up of Linux, did you have a look here?

Thanks and best regards,
Jaski

Thank you very much for your response i solve my problem by your link
but instead of directly using my opencv output file (.out) i use bash file (.sh) as launcher of my opencv .out file

(opencvlauncher .sh )

# !bin/sh
sleep 5
echo ubuntu | sudo -S -v
sleep 2
sudo /home/ubuntu/myopencv

and my desktop file is

[Desktop Entry]
Type=Application
Exec=gnome-terminal --command "sh  /home/ubuntu/opencvlauncher.sh"
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=Terminal
Name=Terminal
Comment[en_US]=Te
rminal
Comment=Terminal

best regards

Perfect that the Problem is solved. Thanks for the feedback.