Skip to content

Multiple quickaccess entries on KDE Dolphin #3883

Closed
cryptomator/integrations-linux
#114

Description

@jrauber

Summary

A dirty shutdown of the cryptomator process leads to multiple quick access entries in KDE Dolphin

Please agree to the following

What software is involved?

  • Operating System: openSuse Tumbleweed
  • Dolphin: 25.04.1
  • Cryptomator: 1.16.0 (flatpak-1)
  • Nextcloud: 3.16.4

Volume Type

FUSE

Steps to Reproduce

  1. Setup the system as described
  2. Send SIGKILL to process
  3. Restart Cryptomator

Expected Behavior

  1. Only one quick access entry present instead of two

Actual Behavior

Image

Image

Reproducibility

Always

Relevant Log Output

Anything else?

No response

Activity

  1. added theissue type on Jun 3, 2025
  2. infeo commented on Jun 3, 2025

    @infeo
    Member

    As a workaround: Remove the entry manually.

    1. Open Dolphin
    2. Open the context menu for the faulty entry
    3. Select "Remove from Places..."
  3. added
    state:has-workaround
    on Jun 3, 2025
  4. jrauber commented on Jun 3, 2025

    @jrauber
    Author

    @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 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?

  5. infeo commented on Jun 4, 2025

    @infeo
    Member

    @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.

  6. jrauber commented on Jun 4, 2025

    @jrauber
    Author

    @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.

    <bookmark href="file:///{path-to-mount}/">
        <title>{caption}</title>
        <info>
            <metadata owner="http://freedesktop.org">
                <bookmark:icon name="drive-harddisk-encrypted"/>
            </metadata>
            <metadata owner="https://cryptomator.org">
                <id>{UUID}</id>
            </metadata>
        </info>
    </bookmark>

    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:

    • 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.
  7. reopened this on Jun 15, 2025
  8. jrauber commented on Jun 15, 2025

    @jrauber
    Author

    Sorry, again marked it as closed, the PR is WIP still as it has multiple issues.

  9. infeo commented on Jul 25, 2025

    @infeo
    Member

    Not closed until the dependency is updated

  10. reopened this on Jul 25, 2025
  11. added this to the next milestone on Jul 25, 2025
  12. added a commit that references this issue on Sep 22, 2025
    2d29b1a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    misc:integrationos:linuxstate:has-workaround

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions