XDG_DATA_HOME can't work ubuntu-emulator
Bug #1394858 reported by
Bin Li
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
phablet-tools (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
XDG_DATA_HOME used for saving emulator which user created.
sudo ubuntu-emulator create helloworld --arch=i386 --channel=
After that the emulator would be saved in below directory.
.local/
So I set the XDG_DATA_HOME to /home/emulator/ with export. And move the helloworld into /home/emulator/
After that I could list the emulator with 'ubuntu-emulator list' successfully. So the XDG_DATA_HOME take effect.
But when I create a new emulator with 'sudo' I found it still create a new emulator in '.local/
Thanks!
To post a comment you must log in.
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.