Edit locally on Linux

I wonder why using AppImage desktop client is required for the edit locally option in nextcloud to work. Appearently what is missing using a distro package of the desktop client is a mime scheme handler for the nc:// scheme.

I find that stupid.

If you have this working, could you post that file here?

If you know what the command should be, could you post it here? someting like ‘nextcloud %u` maybe?

Ironically, I can open Nextcloud in my file manager and open any file from there, the “edit locally” is just missing the nc:// mime scheme handler .desktop in the system, with a command that redirects to the local mime handler for the file.

which edit locally do you mean?

You have it with AppImage, but not with your own build, or with ppa-package (Desktop client : “Nextcloud development” team) ? or other?

When in the web interface, an option for a file is ‘edit locally’. It should open in a native app on my client, like libreoffice, given I have nextcloud desktop client installed - but appearently, installed means ‘AppImage’, the arch ‘nextcloud’ package is not good enough?

For me, it kind of works
sometimes. If I try it repeatedly, I’d say maybe one out of three times. :wink:

I’m on Arch with Gnome and Firefox using the client from the Arch repositories. So, at least in principle, the AppImage is not required for it to work. And no, I didn’t change anything: just installed the desktop client from the Arch repos and left the configuration at its defaults.

However, I don’t know why it’s so unreliable, and honestly, I don’t have the motivation to investigate further since I don’t really need the feature. If it’s important to you, maybe check to see if there’s already an open issue on GitHub. If not, open one.

Of course, it could also be related to how the Arch package is built, as well as the browser, desktop environment, or window manager you’re using. Therefore, finding the root cause might not be that straightforward.

Thanks for answering :slight_smile:

I just think it should work, or optionally be hidden. I just open documents from my file manager, mostly.

Well, yeah, that’s certainly the intention. :wink:

As I said, it works in principle, at least on my system. By the way, while I had a rough start with it earlier while testing it, the files now seem to open almost instantly on the first try, i.e., without having to click “Edit Locally” multiple times, as I wrote in my previous post. Maybe it had to register the nc:// links first, which took too long and caused the file action to time out. Either way, it seems to work for me now.

However, I haven’t really looked deeply into how it actually works, and I suppose it’s entirely possible that it might not work at all under certain circumstances. That said, the developers can only improve it if users report issues, since testing it across all the different distributions out there, especially DIY ones like Arch, where nearly every user has a unique setup, is practically impossible.