openSUSE / kmozillahelper

KDE mozilla integration
MIT License
17 stars 9 forks source link

Filepicker does not show network places #23

Closed maverick74 closed 5 years ago

maverick74 commented 5 years ago

If i go to (e.g.) Google Images and try to upload files from the network i cannot, as it does not show remote folders (only local ones)!

Vogtinator commented 5 years ago

This is correct, firefox only supports uploading local files.

maverick74 commented 5 years ago

Hi @Vogtinator

isn't there a way to solve this?

LO, for example, uses lo_kde5filepicker and seems to have no problem with network places

Vogtinator commented 5 years ago

Here Libreoffice with "kde5" does not support arbitrary URLs either.

maverick74 commented 5 years ago

hum... weird...

I don't have a problem with it here! I'm on opensuse TW, however. But i can browser remote folders without any problem!

This is a very annoying missing feature!!!

Isn't there any plans to support it?

bmwiedemann commented 5 years ago

What are "remote folders" here? SMB (Windows) shares? NFS mounts? Even a mounted sshfs would count as "local"

maverick74 commented 5 years ago

SMB in this case

maverick74 commented 5 years ago

Let me ask another thing: Shouldn't this be "native" of kde or something?

I mean, why is there a need for a kmozillahelper? Shouldn't it just call a plasma specific process that would deal with this (KIO, i think) and that would be common for all programs and show up the same to all of them?

what am i missing here?!

bmwiedemann commented 5 years ago

So that would be a \\host\path\file type path then? https://en.opensuse.org/Samba#How_to_use_the_client has an example for proper mounting of a SMB share, so it would become a "local" filesystem to all applications.

bmwiedemann commented 5 years ago

And firefox is not a KDE program - I think it used GTK, so it would not know about KDE-specifics itself.

Vogtinator commented 5 years ago

I'm on opensuse TW

Me too.

I mean, why is there a need for a kmozillahelper? Shouldn't it just call a plasma specific process that would deal with this (KIO, i think) and that would be common for all programs and show up the same to all of them?

Firefox does not have any interface with Plasma/KIO other than kmozillahelper. To make this work, it would be necessary to replace large parts of firefox' IO internals with KIO specifics.

maverick74 commented 5 years ago

@Vogtinator @bmwiedemann ok, but i have the same problem with Falkon, Krita, Calligra, etc and they're all KDE (and Firefox is using the kde open dialog as well) so... why don't they work either? :)

(sorry for all my questions - but is a frustrating "thing" )

Vogtinator commented 5 years ago

@Vogtinator @bmwiedemann ok, but i have the same problem with Falkon, Krita, Calligra, etc and they're all KDE (and Firefox is using the kde open dialog as well) so... why don't they work either? :)

Falkon uses Qt WebEngine (which is just repackaged chromium) without KIO integration. Krita and Calligra should work fine.

maverick74 commented 5 years ago

@Vogtinator so... that means that i probably have some problem on my machine :) (Or that there is a bug somewhere)

Vogtinator commented 5 years ago

@maverick74 Probably. While it probably makes sense to have this discussion elsewhere, I'm not sure where. What happens with the following?

maverick74 commented 5 years ago

I understand. I'm sorry but I didn't get any help anywhere else.

I'm out of office ATM in about an hour I'll reply you with an answer to your questions above.

You mentioned above this is the result lack of support of arbitrary URLs (from what understand). Isn't this planed to be supported in kmozillahelper?

Vogtinator commented 5 years ago

You mentioned above this is the result lack of support of arbitrary URLs (from what understand). Isn't this planed to be supported in kmozillahelper?

This isn't something that can be implemented in kmozillahelper, it's a new feature for firefox.

maverick74 commented 5 years ago

Ok. If that is what's needed to be able to browse remote folders, Then it's something to submit as a bug in Mozilla. :)

Thanks for clarifying that part.

I'll get back here asap with those answers

maverick74 commented 5 years ago

@Vogtinator

  • Kate's file dialog

Shows remote locations

  • "kdialog --getopenurl"

Shows remote locations

  • "kdialog --getopenfilename"

Does not show remote locations

maverick74 commented 5 years ago

@Vogtinator Is there any real diference, in terms of function, between

kdialog --getopenurl and kdialog --getopenfilename

that justifies having the last instead of the fist for file uploads?

Vogtinator commented 5 years ago

Yes. The former returns an URL (file:///foo/bar, smb://host/path/file, desktop:/file) while the latter a local file path. Firefox does not support URLs for file operations.