You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function addEntryToConfig which adds the entry does not "up-sert" the xml entry but instead always adds. A fix would be to check first and then create or else update. Should I add a fix through a pull request?
@jrauber We always welcome contributions from the community!
For this context: Every new entry gets a random ID. So in order to update an existing item, we would need to search the xml before adding if such an entry already exists and need to extract the id from this entry.
@infeo That's what I thought when looking at the linux-integration lib. Update entries that are functionally equivalent to the one which would be created.
I am not sure how unique the entry is considering that they can be created either by manual manipulation of the XML structure or through the Dolphin UI. Maybe a "cryptomator flag" attribute inside the bookmark element would be a solution, but first I have to check if the XSD allows for that. A flag would prevent changes of items that are accidentally equivalent but user generated for an individual purpose.
Edit:
The element metadata and its attribute owner are already a good option to prevent accidental overwrites.
Check for the equivalent href attribute on bookmark elements
If multiple identical items exist, those would all share the same uuid, in case of the remove the remove function needs to take this into consideration.
Activity
infeo commentedon Jun 3, 2025
As a workaround: Remove the entry manually.
jrauber commentedon Jun 3, 2025
@infeo Thanks for the quick response, that's what i did.
I think the issue is in the following code
https://github.com/cryptomator/integrations-linux/blob/42732f4cf057849cbc6878ee0889d3213fd4199d/src/main/java/org/cryptomator/linux/quickaccess/DolphinPlaces.java#L65
The function
addEntryToConfigwhich adds the entry does not "up-sert" the xml entry but instead always adds. A fix would be to check first and then create or else update. Should I add a fix through a pull request?infeo commentedon Jun 4, 2025
@jrauber We always welcome contributions from the community!
For this context: Every new entry gets a random ID. So in order to update an existing item, we would need to search the xml before adding if such an entry already exists and need to extract the id from this entry.
jrauber commentedon Jun 4, 2025
@infeo That's what I thought when looking at the linux-integration lib. Update entries that are functionally equivalent to the one which would be created.
I am not sure how unique the entry is considering that they can be created either by manual manipulation of the XML structure or through the Dolphin UI. Maybe a "cryptomator flag" attribute inside the bookmark element would be a solution, but first I have to check if the XSD allows for that. A flag would prevent changes of items that are accidentally equivalent but user generated for an individual purpose.
Edit:
The element metadata and its attribute owner are already a good option to prevent accidental overwrites.
Edge cases:
jrauber commentedon Jun 15, 2025
Sorry, again marked it as closed, the PR is WIP still as it has multiple issues.
infeo commentedon Jul 25, 2025
Not closed until the dependency is updated
Bump the java-production-dependencies group across 1 directory with 5…