# Nextcloud bug/help with workaround

**URL:** https://discourse.nixos.org/t/nextcloud-bug-help-with-workaround/36398
**Category:** Help
**Created:** [December 3, 2023, 2:58pm UTC](https://discourse.nixos.org/t/nextcloud-bug-help-with-workaround/36398 "2023-12-03T14:58:37Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![\_Andrew](https://discourse.nixos.org/user_avatar/discourse.nixos.org/_andrew/32/10331_2.png) [@\_Andrew](https://discourse.nixos.org/u/_Andrew)
#### Post date: [December 4, 2023, 6:49am UTC](https://discourse.nixos.org/t/nextcloud-bug-help-with-workaround/36398/2 "2023-12-04T06:49:59Z")

</div>

From skimming [the source](https://github.com/nextcloud/desktop/blob/adf8fc77b37e692698cf089a8d0a4988d48545ab/mirall.desktop.in#L200) patching like this should do it:

```nix
nextcloud-client.overrideAttrs (attrs: {
  patches = attrs.patches ++ [
    # Workaround for https://github.com/nextcloud/desktop/issues/6218
    (builtins.toFile "remove-desktop-implements.patch" ''
      --- a/mirall.desktop.in
      +++ b/mirall.desktop.in
      @@ -200 +199,0 @@
      -@LIBCLOUDPROVIDERS_DESKTOP_IMPLEMENTS@
    '')
  ];
})

```

Though maybe someone else can offer a method that doesn’t cause the whole thing to recompile.

Also note that the upstream issue [suggests](https://github.com/nextcloud/desktop/issues/6218#issuecomment-1819479543) that the desktop entry is correct and the .ini is the duplicate, so the more correct patch might be something like:

```diff
--- a/shell_integration/libcloudproviders/CMakeLists.txt
+++ b/shell_integration/libcloudproviders/CMakeLists.txt
@@ -37 +36,0 @@
- libcloudproviders_add_config(org.freedesktop.CloudProviders.ini.in)

```

---

_[View the full topic](https://discourse.nixos.org/t/nextcloud-bug-help-with-workaround/36398)._
