Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving settings to another PC #2170

Open
MarcBachmann78 opened this issue May 5, 2024 · 4 comments
Open

Moving settings to another PC #2170

MarcBachmann78 opened this issue May 5, 2024 · 4 comments
Labels
Type ◦ Bug Something isn't working

Comments

@MarcBachmann78
Copy link

Priority

Low

Version: KeeWeb

v.1.18.7

Environment

Desktop

Operating System

Windows

Range of issue

None

Database Type

None

Environment Copy/Paste

KeeWeb v1.18.7 (dfc6201, 2021-07-18)
Environment: electron v12.0.7
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) KeeWeb/1.18.7 Chrome/89.0.4389.128 Electron/12.0.7 Safari/537.36

Description

I got another laptop (old and new = Windows 11) and want to get all my (remote) password storages to the new laptop.

What I already did:

• Installed newest version on new laptop, existing in C:\Program Files\KeeWeb
• Both version on new and old laptop are identical
• Copied %APPDATA%\KeeWeb from old laptop to new laptop – before opening KeeWeb for the first time

But when I open KeeWeb on the new laptop I am not having my recent used storages at the start page.

On the old laptop I have 4 storages at the start page:

I got another laptop (old and new = Windows 11) and want to get all my password storages to the new laptop.

What I already did:

• Installed newest version on new laptop, existing in C:\Program Files\KeeWeb
• Both version on new and old laptop are identical
• Copied %APPDATA%\KeeWeb from old laptop to new laptop – before opening KeeWeb for the first time

But when I open KeeWeb on the new laptop I am not having my recent used storages at the start page.

How can I copy this section, too ? (Without the need to enter all credentials again)

Steps To Reproduce

see description

Expected Behavior

copying %APPDATA% Folder would show all recent used storages on the new laptop too

Logs

No response

Referenced Issues

No response

Attachments: Database kdbx File

No response

Attachments: Screenshots

No response

@MarcBachmann78 MarcBachmann78 added the Type ◦ Bug Something isn't working label May 5, 2024
@Aetherinox
Copy link
Contributor

Aetherinox commented May 8, 2024

I will need to peel through the code (new to the dev team). I peeled through the files + databases; practically all the files stored in APPDATA, and I saw no mention of existing storage methods being saved in any of those files.

@MarcBachmann78
Copy link
Author

thats why I do not get the storage methods by copying APPDATA to new laptop.

But somewhere are those entries saved:

2024_05_08_16_32_35_KeeWeb

@Aetherinox
Copy link
Contributor

Aetherinox commented May 8, 2024

From the code I'm reading, I'm going to be more willing to bet that it is stored in the VM heap memory. Which is utilized with both the web and desktop version of KeeWeb.

This memory can be accessed by opening the developer console.

YyGGl5J6Cl

In that memory, I found a storage container

iAVTpYGa2o

Within that memory, I'm finding things like gdriveOAuthToken, onedriveClientId, onedriveClientSecret, etc. And also the linked vault image /drive/root:/New.kdbx. And the methods for connecting a new drive / vault are calling that heap memory.

So as I suspected, these details aren't stored locally within the filesystem. They're stored within your browser, or electron if you're on the desktop version.

I've got to dig deeper as to where localstorage is placed.

@antelle
Copy link
Member

antelle commented May 9, 2024

Open files and other settings are stored in the filesystem, but they’re encrypted. You can find all of those stored pieces of data by searching SettingsStore.load, for example, the list of files.

Then for the browser, it goes to the localStorage.

On desktop, it calls Launcher.saveConfig that ends up doing this. Here’s the encryption key for this kind of configs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type ◦ Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants