atom/tree-view

Atom tree view doesn't stick to the right on restart

ankitsinghaniyaz opened this issue · 7 comments

Prerequisites

Description

Tree view moves back to left on restart.

[Description of the issue]
Tree view when moved to the right side using drag n drop comes back to the left on restart.

Steps to Reproduce

  1. Start Atom
  2. Drag n Drop tree view to the right
  3. Restart Atom
  4. Tree view is on the left side

Expected behavior: Tree view should still be on the right.
Actual behavior: Tree view is on the left

Reproduces how often: 100%

Versions

Atom 1.27.1
Ubuntu 18.04

As discussed with @rsese on #1084 (comment)

rsese commented

Thanks for opening a new issue - I'm unable to reproduce with 1.27.1 on Ubuntu 18.04. If you temporarily reset to factory defaults, does the tree-view stick after dragging it over to the right?

https://flight-manual.atom.io/hacking-atom/sections/debugging/#reset-to-factory-defaults

Nope, that doesn't fix it. I've even tried to remove and re-install atom completely.

I guess this has something to do with opening atom using sudo. I had to edit some /etc config files so I opened that using sudo atom and that seems to have messed the configuration.

Is there any place where the config is stored?

I can confirm that the issue not there if I open atom using sudo.

  1. sudo atom - wroks fine as expected
  2. atom - tree view doesn't sticks
rsese commented

Ahhh yeah that's probably it, running Atom with sudo causes issues - since resetting to factory defaults didn't fix things up for you, I don't think it's your config.cson file. I poked around a bit more and see that clearing saved state didn't reset the location of tree view either if I had dragged it to the right side.

Finally found that it's stored in ~/.config/Atom/IndexedDB/ so I wonder if that directory or a file in the directory is owned by root and you just need to chown it? I did think that clearing saved state would clear that info though.

You could also rename the directory so next time you start Atom without sudo things should be ok.

Thank you so much. I just deleted that directory and now it works again. :)

rsese commented

Great glad that worked ⚡, I'll go ahead and close this out.