I'm trying to create mozilla profile for another user from command line using su.
When I'm trying from X, this will work.
su myuser -c 'mozilla -CreateProfile newprofile'
But my goal is to embed this to a script and it will execute only in command line mode. If I try this, from a command line, It also works:
DISPLAY=1.0 mozilla -CreateProfile newprofile
The question is how to embed "DISPLAY" variable in "su" command, cause this fails:
su myuser -c 'DISPLAY=1.0 mozilla -CreateProfile newprofile'