Airshipper icon indicating copy to clipboard operation
Airshipper copied to clipboard

Changing login name prevents Airshipper from working

Open bronson opened this issue 4 years ago • 1 comments

Describe the bug

After I changed my login name, Airshipper could no longer download and run Veloren.

To Reproduce Steps to reproduce the behavior:

  1. log in as root
  2. mv /home/oldname /home/newname
  3. chown -r newname /home/newname
  4. finally, update your home directory in /etc/passwd

Expected behavior

I'd expect Airshipper to continue to work, or at least complain about being unable to find the download destination directory. Instead, when I try to update, it says only, Error occurred. Give it a retry.

Desktop (please complete the following information):

  • OS: MacOS
  • GPU: AMD Radeon Pro 5500M 4 GB

Additional context It's due to the absolute paths stored in these .ron files:

  • airshipper_state.ron: active_profile.default
  • profiles/default/userdata/voxygen/settings.ron: log.logspath, screenshots_path

When I update them, Airshipper works normally again.

Quickly glancing through other apps storing data in ~/Library/Application Support, VS Code uses two conventions: ~/path and %APP_SETTINGS_HOME%/path. The other apps seem to avoid storing absolute paths in their application support and preferences files at all.

bronson avatar Apr 13 '21 16:04 bronson

Hopefully fixed by #158 to be included in the 0.4.3 release.

Songtronix avatar Jun 25 '21 16:06 Songtronix