Debian 11.7 obexd dependecy for Bluetooth automatically accept incoming files

I have written a service file in Beaglebone Green Wireless to accept incoming files over Bluetooth from other devices, such as Android.
I have installed obex-tools. I run bt-obex -s -y ~/Downloads. Files are transferred and stored in the Downloads folder of BBGW. But when I run it with sudo, it shows an error: cannot autolaunch dbus-X11. For that, I have declared a display variable in the service file. After that, it shows dependancy and obexd issues.