Run gui application automatic when orin

I want to run gui application automatcally when orin wake up
I use orin version 36.4
How do I do that?
I tried to use .xsessionrc on /home/ubuntu but i it does not run

Hi alalieli,

Are you using the devkit or custom board for Orin Nano?

R36.4.0 or R36.4.3?
You can run cat /etc/nv_tegra_release on your board to check.

Which GUI application you want to run?
May I know what’s your exact use case?

My version is 36.4.0
I am using devkit

Which GUI application you want to use?
Maybe you can simply create a custom service to handle this.