On Sunday, May 21, 2017 at 4:47:19 AM UTC+10, aforete wrote:
> Am I doing something wrong here? is there any other way to start
> applications once a vm starts?
Yes, you can do the following in your AppVM:
1) make the directory /home/user/.config/autostart if it doesn't already exist
2) add a file inside that directory called (e.g) thunderbird.desktop that contains the following lines
[Desktop Entry]
Name=thunderbird
Exec=thunderbird
Type=Application
Reboot your AppVM and Thunderbird should start. Rinse and repeat for any other app.
The reason this works is that the autostart files are processed *after* the user's X session has started up.
Cheers
yes I use /rw/config/rc.local. If something like thudnerbird that need gui you can create directory ~/.config/autostart/ then put a .desktop file in there. Then put it in /rw/config/rc.local file to launch at start.