method:
Use Linux's .desktop file to start booting.
Create a test.desktop file in the /etc/xdg/autostart directory, and edit the file as follows.
Steps:
Step 1: Open the /etc/xdg/autostart directory.
cd /etc/xdg/autostart
Step 2: Create test.desktop file.
touch test.desktop
The third step: write a file and save it.
"Sudo vim test.desktop" enter the compose window, enter "i" to enter the insert mode.
Add code:
[Desktop Entry]
Name=portTest
Exec=/diskE/port-exe/portTest
Type=Application
Then press Esc on the keyboard to exit editing, enter ":wq" to save and exit.
Note: Be sure to use root privileges, otherwise when you finish editing and saving, please add the option readonly! Mandatory execution or E212: unable to open and write the file in vim.