Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to be able to open an application every time a live Centos image boot. I already have extracted the contents of initrd.img file, and analyse the init file, but with no success.

I know that i have to create a folder - autostart - in /home/centoslive/.config, and touch a file myApp.desktop That file should have as content: [Desktop Entry]

Type=Application
Exec=/path/to/my/app
Hidden=false
X-Gnome-Autostart-enable=true

in resume the file should be in: /home/centoslive/.config/autostart/myApp.desktop

The problem is that i can't touch this file throw any of the contents of the initrd.img.

If someone could help me with that, i would THANK YOU ...

share|improve this question

1 Answer 1

I would recommend you to add this application to the autostartup-items through the settings:

System -> Preferences -> Startup Applications

So you can add it without touching the initrd.img-file.

enter image description here

share|improve this answer
    
Thanks you for your answer Chris... Yes, i know that we can add apps to be opened at Boot throw that way, but as the CentOS is in RAM, everytime i start the OS that definitions are gone. Thats why tose settings haver to be in initrd.img –  ricfar Oct 14 '13 at 22:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.