-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
KeeShare should respect relative paths #2799
Comments
I suggest to look at #2748 which may provide a more generic way to resolve this problem. To be honest, I'm not sure if it's what I would expect by giving relative paths - most applications use a relative path to the working directory - a path relative to the database location seems not that intuitive to me. |
It would be consistent with the way auto open is implemented. Another option is to allow defining different paths for different operating systems. This is mainly a cross platform issue. |
This is only true as long as the user doesn't share the source database itself (via dropbox, ... - sure, this may beat the original intention of keeshare, but it seems realistic to me). |
Auto open is another feature. You create a folder named "AutoOpen" and entries in that folder use their url to point to other database files. These are opened and unlocked when the parent database is unlocked. KeeShare largely obviates this feature. The use case I am thinking of is if the KeeShare share is uploaded to a corporate dropbox and I want to use my single master database to access this share on Mac, Windows, and/or Linux. Each platform has a different way (and location) to point to the Dropbox shared database. |
When I understand you correctly, you want to store a path for each platform and this path should be relative to the master database. Maybe we need to combine the two approaches - use database relative paths (as default and as symbol) which each KeePassXC client may resolve to a different location. This way, the share definition in the master database can be "interpreted" individually. To resolve the path, we may store the path within the KeePassXC client instance (as already suggested) or we need to put them into a map within the custom data, where each client/os can resolve the path request the path by itself (using some kind of unique id?). |
A path per platform that is stored in the custom data of the group would be perfectly fine! |
Expected Behavior
When a share path is relative (eg.
../../shared/db.kdbx
) then it should resolve an absolute path from the currently open database's location.Current Behavior
Relative paths are not honored and do not work.
The text was updated successfully, but these errors were encountered: