Keep List of Shared Locations #1

Open
opened 2025-09-05 13:33:11 -07:00 by x80486 · 8 comments
x80486 commented 2025-09-05 13:33:11 -07:00 (Migrated from github.com)

I usually share a small subset of what's in the user's home directory. Every time the application starts, this is lost, so I wonder if it's possible to persist that change between sessions/restarts.

I usually share a small subset of what's in the user's home directory. Every time the application starts, this is lost, so I wonder if it's possible to persist that change between sessions/restarts.
hperrin commented 2025-09-05 13:34:49 -07:00 (Migrated from github.com)

Yeah, I can do that. Actually, it might be good to save the entire config.

Yeah, I can do that. Actually, it might be good to save the entire config.
x80486 commented 2025-09-05 13:43:55 -07:00 (Migrated from github.com)

That would be great. I think that makes sense, but persisting the password wouldn't be that straightforward, and the application might need some other permissions...so it could be cumbersome 😬

Perhaps the password should be left out? 🤔

That would be great. I think that makes sense, but persisting the password wouldn't be that straightforward, and the application might need some other permissions...so it could be cumbersome 😬 Perhaps the password should be left out? 🤔
hperrin commented 2025-09-05 13:45:15 -07:00 (Migrated from github.com)

I can persist the password only if the user changes it. Maybe that would be a good approach?

I can persist the password only if the user changes it. Maybe that would be a good approach?
hperrin commented 2025-09-05 13:50:00 -07:00 (Migrated from github.com)

Or maybe make it an option to save the config and the shared folders separately.

Or maybe make it an option to save the config and the shared folders separately.
x80486 commented 2025-09-05 13:58:16 -07:00 (Migrated from github.com)

I'm not sure, really. I don't know how that looks like. Is it currently saved anywhere?

What I have in mind is that the application's configuration is a JSON file, so saving the password in clear is not great. But if it's something different, maybe a secure database or something similar, provided by Electron, then it's fine.

I'm not sure, really. I don't know how that looks like. Is it currently saved anywhere? What I have in mind is that the application's configuration is a JSON file, so saving the password in clear is not great. But if it's something different, maybe a secure database or something similar, provided by Electron, then it's fine.
hperrin commented 2025-09-05 14:00:38 -07:00 (Migrated from github.com)

I think I can access the system's keychain from Electron. That could let me store the password encrypted. Right now nothing is saved, it's just a default setup every time you open the app. I could also have it save the window size and location.

I think I can access the system's keychain from Electron. That could let me store the password encrypted. Right now nothing is saved, it's just a default setup every time you open the app. I could also have it save the window size and location.
x80486 commented 2025-09-05 14:06:03 -07:00 (Migrated from github.com)

OK...that's awesome 🙌

You are going to need to add --filesystem=xdg-run/keyring and --talk-name=org.freedesktop.secrets to the Flatpak manifest — but probably you already knew that.

OK...that's awesome 🙌 You are going to need to add `--filesystem=xdg-run/keyring` and `--talk-name=org.freedesktop.secrets` to the Flatpak manifest — but probably you already knew that.
hperrin commented 2025-09-05 14:07:12 -07:00 (Migrated from github.com)

I didn't know that. Thank you. :D

I didn't know that. Thank you. :D
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sciactive/quickdav#1
No description provided.