I have tried this steps but not working
- First I have create a simple script in /opt/test.sh
- Then give execute permission for that file
- Create a test.desktop file in the following location
/etc/xdg/autostart
- Generate a new ISO.
- Then I have install that iso on my VM the file not created as I wrote in the script file.
test.sh
#!/bin/bashtouch /opt/filecreated
test.desktop
[Desktop Entry]Type=ApplicationExec=/opt/test.shHidden=falseNoDisplay=falseX-GNOME-Autostart-enabled=trueName[en_US]=Test FileName=Test FileComment[en_US]=Test FileComment=Test File
Please help me to run a script file when install iso
Thank you