I have some commends that I wish to be called right after login, including 'startx', and I thought rc.local
seems a nice place for them, but the problem is that rc.local
is run as root and I don't want that, obviously I can do something like this:
su username -c somecommend-here
But I am looking for a way to run the whole 'rc.local' as normal user, or perhaps there is a better place to put my code ?
PS. I am using Ubuntu-mini-remix 1104i386
Thanks