[Bug 1394858] Re: XDG_DATA_HOME can't work ubuntu-emulator

2014-12-23 Thread Bin Li
Vicamo, Yes, :) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1394858 Title: XDG_DATA_HOME can't work ubuntu-emulator To manage notifications about this bug go to:

[Bug 1394858] Re: XDG_DATA_HOME can't work ubuntu-emulator

2014-12-23 Thread Bin Li
XDG_CACHE_HOME also have the same issue. https://bugs.launchpad.net/ubuntu/+source/phablet-tools/+bug/1394855 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1394858 Title: XDG_DATA_HOME can't work

[Bug 1394858] Re: XDG_DATA_HOME can't work ubuntu-emulator

2014-11-27 Thread Vicamo Yang
I think both `sudo -E ...` or `sudo env XDG_DATA_DIRS=$XDG_DATA_DIRS ...` work for your case. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1394858 Title: XDG_DATA_HOME can't work ubuntu-emulator

[Bug 1394858] Re: XDG_DATA_HOME can't work ubuntu-emulator

2014-11-26 Thread Vicamo Yang
When you execute any command with sudo, it will probably _not_ carry your environment variables set for your normal user. So, when you execute `ubuntu-emulator list` as normal user, that XDG_DATA_HOME variable takes effect and not when you execute `ubuntu-emulator create` as root via sudo. --

[Bug 1394858] Re: XDG_DATA_HOME can't work ubuntu-emulator

2014-11-26 Thread Bin Li
Vicamo, Yes, that's the reason. You cant just write a simple test. when use it with sudo it can't anything. :) -- $cat test.sh #!/bin/bash echo $XDG_DATA_DIRS -- Could we find another way to set the DATA_HOME? Thanks!