Sorry for being curious, but again: where is the significant difference? I'm using su - right now, and it works. I can also use upstart, and it also works.
Here is the difference between the two environments: root@ubuntu-phablet:/# su - phablet phablet@ubuntu-phablet:~$ env | sort > env1.txt phablet@ubuntu-phablet:~$ logout root@ubuntu-phablet:/# sudo -i -u phablet -H phablet@ubuntu-phablet:~$ env | sort > env2.txt phablet@ubuntu-phablet:~$ diff -u0 env1.txt env2.txt --- env1.txt 2013-09-24 19:57:57.813107625 +0000 +++ env2.txt 2013-09-24 19:58:27.444726725 +0000 @@ -25 +25 @@ -PATH=/home/phablet/go/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games +PATH=/home/phablet/go/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin @@ -33,0 +34,4 @@ +SUDO_COMMAND=/bin/bash +SUDO_GID=0 +SUDO_UID=0 +SUDO_USER=root @@ -35,0 +40 @@ +USERNAME=phablet @@ -39 +43,0 @@ -XDG_SESSION_ID=c6 On Tue, Sep 24, 2013 at 4:53 PM, Oliver Grawert <[email protected]> wrote: > hi, > On Tue, 24 Sep 2013 15:42:31 -0300 > Gustavo Niemeyer <[email protected]> wrote: > >> Just had a long debugging session with help from Ricardo Salveti, and >> he provided a few workarounds that have helped getting qmlscene to be >> runnable from the terminal (or adb shell). >> >> So, for the record, here are a few points to keep in mind if you want >> to do this: >> >> 1) If you are root, run "su - phablet" so you get into the right user >> environment >> > never ever use su on teh touch images, it gets you a different environment > than sudo ... > > also you need to use the -i option to sudo to make it process the bits from > /etc/profile.d, else you will not have access to the upstart session or to > dbus > > ciao > oli > > -- > Mailing list: https://launchpad.net/~ubuntu-phone > Post to : [email protected] > Unsubscribe : https://launchpad.net/~ubuntu-phone > More help : https://help.launchpad.net/ListHelp > -- gustavo @ http://niemeyer.net -- Mailing list: https://launchpad.net/~ubuntu-phone Post to : [email protected] Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp

