Re: Support for remote file in location window



GTK+ is the library that provides that window. The window is known as "GtkFileChooser".

When Chromium says "please open a GtkFileChooser", it provides a set of options about how to return the results. One of these options is "do I want to get a URI back (file:///usr/share/pixmaps/google.png, http://google.com/google.png, etc.) or do I want a file path back (/usr/share/pixmaps/google.png)"

GtkFileChooser does not hand Chromium back the file's contents. It simply hands it back the URI or file path. Chromium would need to somehow open the URI it gets back. Obviously, Chromium can open http/https URIs using its own networking stack, but for whatever reason, it chooses not to toggle on that functionality.


On Thu, Jul 4, 2013 at 2:45 PM, Robert Orzanna <orschiro gmail com> wrote:
Thanks for your responses.

Ritesh is talking about gvfs, you, Jasper, about gtk. Could you
clarify how they work together?

As for the application:

Generally I need this feature when trying to upload something onto a
website using Chromium. Pressing the upload button on the website then
opens the "Open file" window [1]. However, I am not sure which program
provides this window. As for the file manager, I am using Nautilus.

So, is there any way how I can tell the window to accept remote files?

Regards,

Robert

[1] http://i.imgur.com/gF693yq.png

On 4 July 2013 18:34, Jasper St. Pierre <jstpierre mecheye net> wrote:
> Well, GtkFileChooser can support remote files (there's a flag for it), but
> only if the application can understand it. The app is returned either a
> filename (which is local-only) or a URI which it has to use Gio to
> implement. I don't know what app you're using, but it has to flip the switch
> to enable URIs in GtkFileChooser, and then be able to interpret the URI
> returned.
>
>
> On Thu, Jul 4, 2013 at 11:50 AM, Ritesh Khadgaray <khadgaray gmail com>
> wrote:
>>
>> Hi
>>
>>
>> On 02-Jul-2013 6:18 PM, "Robert Orzanna" <orschiro gmail com> wrote:
>> >
>> > Hello there,
>> >
>> > Is it possible to implement support for providing remote files to the
>> > location window?
>> >
>> > I am talking about this window: http://i.imgur.com/gF693yq.png
>> >
>> > This would be very useful for uploading remote files to websites in a
>> > browser session.
>> >
>> > Regards
>> >
>> > Robert
>> > _______________________________________________
>> > gtk-list mailing list
>> > gtk-list gnome org
>> > https://mail.gnome.org/mailman/listinfo/gtk-list
>>
>> This comes from gvfs ( https://wiki.gnome.org/gvfs)  not gtk.
>>
>> Cheers
>> ritz
>>
>>
>> _______________________________________________
>> gtk-list mailing list
>> gtk-list gnome org
>> https://mail.gnome.org/mailman/listinfo/gtk-list
>>
>
>
>
> --
>   Jasper



--
  Jasper


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]