element-hq / element-desktop

A glossy Matrix collaboration client for desktop.
https://element.io
GNU Affero General Public License v3.0
1.16k stars 265 forks source link

Element ~/.config/ directory confusion in Linux #725

Open geckolinux opened 4 years ago

geckolinux commented 4 years ago

Hi there, it's not a big deal, but the Linux Electron app for Element is kind of making a mess with its config directory(s). Obviously when it was called "Riot" it created a ~/.config/Riot. But now since the rename it has also created ~/.config/Element (Riot) and ~/.config/Element, but it doesn't really seem to use them. The last two directories both contain a sso-sessions.json file and an empty Dictionaries directory.

turt2live commented 4 years ago

Does this happen on a fresh install?

axelsimon commented 2 years ago

Necroposting, but hopefully for the greater good.

@turt2live i think only when Element is installed and it detects a ~/.config/Riot does it create an ~/.config/Element but leave it mostly empty. At least that's what happened in my case.

It may be a case of simply moving everything in ~/.config/Riot to ~/.config/Element to migrate, but it would be good to check and have that documented somewhere, i suppose.

Looking at what a fresh install of Element puts in its config folder today, i can see a lot more stuff in my old Riot directory: CURRENT 'Crash Reports' 'Custom Dictonary.txt' in_progress_download_metadata_store 'Origin Bound Certs' 'Origin Bound Certs-journal' …and more.

It's not clear what is just cruft from previous versions and what is useful, live data that could be migrated.