nextcloud / desktop

💻 Desktop sync client for Nextcloud
https://nextcloud.com/install/#install-clients
GNU General Public License v2.0
2.9k stars 772 forks source link

Add option to disable file explorer integration #1982

Open toxpal opened 4 years ago

toxpal commented 4 years ago

It would be useful if desktop client offers option to enable/disable file explorer integration, which is now forced by default (at least on Linux).

Once I install NC Desktop on KDE (didn't test other DEs), it "hijacks" file picker dialog (system-wide) by immediately adding synced folders to it. I realize some users might appreciate this feature, but we really need a way to disable this behavior because not everyone wants it.

jirizaj commented 3 years ago

I agree. The behavior is the same on Win10 as well. It might be nice to have the option to disable the integration per account. I have some accounts only for sync of backups and I don't really want to have such accounts visible in my explorer's navigation pane.

er-vin commented 3 years ago

I agree. The behavior is the same on Win10 as well. It might be nice to have the option to disable the integration per account. I have some accounts only for sync of backups and I don't really want to have such accounts visible in my explorer's navigation pane.

This is already possible to disable on Windows (globally though, not per account and honestly we don't plan to go there). It's in the General tab of the settings dialog, one checkbox away.

er-vin commented 3 years ago

Currently on Linux this goes through the libcloudproviders facilities... I guess we could have the checkbox there as well to allow to opt out like it's done on Windows.

toxpal commented 3 years ago

I guess we could have the checkbox there as well to allow to opt out like it's done on Windows.

That would be great. No need to go into account level, a global setting is more than enough in my opinion.

ericpre commented 2 years ago

Putting a workaround as a note, because after each update, it takes me a while to figure it out again! To remove the nextcloud bookmarks on nautilus, remove the corresponding file in /usr/share/cloud-providers/.

But yes, a nextcloud settings would be good!

ruffson commented 2 years ago

Is there any progress update on this?

I must say for people like me who sync a bunch of nextcloud folders to local directories that are scattered around the system, this is one of the worst recent "features" to come to nextcloud on GNOME systems. Thanks to this I have a long list of all synced folders in nautilus and the only way to get rid of it is removing /usr/share/cloud-providers/com.nextcloudgmbh.Nextcloud.ini which after every system update (like now to Fedora 35) returns.

I would greatly appreciate if it was possible to disable this or reconsider the kind of integration into nautilus.

Example (and note how long the scroll bar is, only showing a fraction of all nextcloud folders which appear BEFORE the actual bookmarks) nautilus

FlexW commented 2 years ago

@ruffson Depends on your distro, but in most distros you can simply uninstall the Nautilus integration of Nextcloud. That should solve it for you.

imsedgar commented 2 years ago

No, it doesn't solve the problem. Linux systems are multi-user systems, so I want to provide all features that the system offers. If I uninstall the package, then nobody can use it. So, on Fedora 34 / 35, if I install package nextcloud-client-nautilus, which contains only file /usr/share/nautilus-python/extensions/syncstate-Nextcloud.py , then all users have the Nextcloud integrated in Nautilus, and there are pop-up windows asking about Nextcloud login etc.

There should be a global and a user option to turn this feature on and off

  1. as a system default for all users, who don't set user specific settings
  2. as a user option to overwrite the system default Setting the default to off is different from uninstalling the package because users can individually switch it on.
rysiekpl commented 2 years ago

@ruffson Depends on your distro, but in most distros you can simply uninstall the Nautilus integration of Nextcloud. That should solve it for you.

This in no way solves the problem.

For one, as @imsedgar noted above, the user affected by this bug might not have enough control over the system to remove that package.

Secondly, I do not have the package nextcloud-client-nautilus installed, and I am still affected by this bug:

$ rpm -qa | grep nextcloud
nextcloud-client-libs-3.3.5-1.fc34.x86_64
nextcloud-client-3.3.5-1.fc34.x86_64

Fourth, I am running Qubes, a system where I am using VMs based on templates. My Fedora template is used as basis for multiple VMs, only some actively use Nextcloud, but having the client installed makes sense in all makes sense. So I have it in the template. But now, I am getting Nextcloud dialog every time I open a file manager in any of the VMs. This is extremely frustrating and not user-friendly.

And finally: why do you insist on removing agency form the users? As a user I know if I want that integration or not, what is wrong with giving me that configuration option? You already do that with "start on system startup", so what gives?

rysiekpl commented 2 years ago

For the record, here is a thread about Arch Linux being affected and users finding it just as confusing and annoying:\ https://bbs.archlinux.org/viewtopic.php?id=259764

albgus commented 2 years ago

This is an issue on Windows as well. What's even worse is that it's no longer possible to disable the integrations at all because the updated will apparently always install with the integration enabled.

KopfKrieg commented 2 years ago

I would greatly appreciate if it was possible to disable this or reconsider the kind of integration into nautilus.

I'd like to add that disabling on a per-account basis would be ideal. I sync to multiple Nextcloud instances, and all show up in my sidebar. However, the only one I want to see in the sidebar is my own, personal account on my own server. I'd like to disable all others.

bbkz commented 2 years ago

The same here on Fedora 34, having multiple users login to the same linux makes it impossible to provide the nextcloud-client.

You cannot really work when all the time a popup comes... remember the time we used webbrowser popups.

As well for provisioning clients the decision must be made to not provide the nextcloud-client to the default software list. As for existing installations i need to figure out which users have the nextcloud-client configured and uninstall it accordingly.

A other approch is to run

mkdir -p ~/.local/share/dbus-1/services/; grep -v ^Exec /usr/share/dbus-1/services/com.nextcloudgmbh.Nextcloud.service > ~/.local/share/dbus-1/services/com.nextcloudgmbh.Nextcloud.service

for every existing user and new users. They still will be able to setup and use the nextcloud-client.

endurance1968 commented 2 years ago

Windows 10 explorer becomes unusable slow for bigger? installations. A simple rename of a file or folder takes 10s (SSD and AMD R9 with 128GB RAM so on a fast machine). You start editing then the systems hangs wait then continue to type.. wait again until synced. As consequence I alway pause sync and only manually trigger a sync - but this is not the idea of nextcloud. Frequently I have also all desktop icons with an overlay checkbox (which should not be there as desktop is not part of nc path). But this is a different annoying bug with the overlay. I now removed the DLL for overlay handling let see if this temporarily helps.

wedeen commented 2 years ago

Please make it possible to completly disable all icons in the explorer. I only want to use it like all other folders in my computer. I disable the explorer integration but have the "Status" column in explorer with icons in every nextcloud folder. This is horrible. Why do you do this. I only want to have some folders I can use from other computers too, without such senseless things. When I choose to disable the explorer integration, I would have a normal explorer with my files. Nothing else.

I am afraid for every update, what comes next...?

FernandoMarques-Santos commented 2 years ago

The user may uninstall the integration via the installer to get rid of the overlays. However, you will lose the context menu.

I see some of you saying something about a status column. I had it once, but now I don't know what sorcery is this that I can't have it anymore. It is a way to make the status being less obtrusive than hundreds of green circles popping up on the screen over the icons.

Edit: found it. You must enable virtual files on the three-dot button on the client window. I don't care about virtual files, but this gets rid of the horrible overlays in favour of a onedrive-like status column

rysiekpl commented 2 years ago

The user may uninstall the integration via the installer to get rid of the overlays. However, you will lose the context menu.

This is in no way a solution to this problem, as mentioned time and again in this very thread.

Can we please stop blaming the users for bad decisions made by the developers finally? Thanks.

For the record, I use Nextcloud (in fact, I run three instances currently, and had set-up at least three more in the past) and I think it is an amazing piece of software. But this issue really grates me, as it seems to do to so many others in this thread. The change is intrusive and unwelcome by a lot of users. There is no good remedy for many of them. It is extremely disappointing that such a change was deployed to the users.

Can this be fixed please?

jcharaoui commented 1 year ago

On Debian 12, the workaround is to run this command:

# dpkg-divert --divert /usr/share/dbus-1/services/com.nextcloudgmbh.Nextcloud.service.disabled --rename /usr/share/dbus-1/services/com.nextcloudgmbh.Nextcloud.service

This will prevent Nextcloud from starting automatically when Nautilus is launched.

To revert:

 # dpkg-divert --rename --remove /usr/share/dbus-1/services/com.nextcloudgmbh.Nextcloud.service
emes81 commented 9 months ago

removing /usr/share/cloud-providers/com.nextcloudgmbh.Nextcloud.ini which after every system update (like now to Fedora 35) returns.

This fix worked for me on Fedora 36-38 but is currently not working on Arch. There is no /usr/share/cloud-providers/ folder, and I have not been able to locate the ini file elsewhere.

sophiedkk commented 8 months ago

Same here, can't seem to disable this on Fedora 39... edit: found the file in /var/lib/flatpak/app/com.nextcloud.desktopclient.nextcloud/current/active/files/share/cloud-providers 🥲

minosimo commented 8 months ago

As of Fedora 39, I also needed to edit the nextcloud .desktop file in /usr/share/applications and remove the lines related to cloud providers. I found the file to edit here.

In usr/share/applications/com.nextcloud.desktopclient.nextcloud.desktop, comment out or delete:

Implements=org.freedesktop.CloudProviders

[org.freedesktop.CloudProviders]
BusName=com.nextcloudgmbh.Nextcloud
ObjectPath=/com/nextcloudgmbh/Nextcloud
JosuaCarl commented 4 months ago

I also got it to quit restarting on my EndeavourOS (Arch derived) + GNOME by commenting out the mentioned lines in /usr/share/applications/com.nextcloud.desktopclient.nextcloud.desktop. Thanks a lot :)

Implements=org.freedesktop.CloudProviders

[org.freedesktop.CloudProviders] BusName=com.nextcloudgmbh.Nextcloud ObjectPath=/com/nextcloudgmbh/Nextcloud

K4LCIFER commented 1 month ago

Kinda weird that Nextcloud Desktop forces integrations into the file manager...