[Gta04-owner] Using bash in qtmoko

Gilles Filippini gilles.filippini at free.fr
Sun Oct 6 22:47:18 CEST 2013


Hi,

radek polak a écrit , Le 05/10/2013 20:58:
> Btw i wonder why we have /root and /home/root - but it seems all qtmoko
> distros use this layout...

This is due to the two first lines of /opt/qtmoko/qpe.env:
 export USER=root
 export HOME=/home/$USER

How about:
 export USER=root
 export HOME=$(/bin/sh -c "echo ~$USER")
instead?

This way HOME would be set to the correct path, whatever USER is.

Thanks,

_g.


More information about the Gta04-owner mailing list