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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/phablet-tools/+bug/1394858/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs