Nautilus+GIO vs GnomeApps+GNOMEVFS (aka: the clash on trash)

View: New views
5 Messages — Rating Filter:   Alert me  

Nautilus+GIO vs GnomeApps+GNOMEVFS (aka: the clash on trash)

by Luca Ferretti :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm playing with my jhbuild development install.

We have a serious issue about trash: gio+gvfs implements the fd.o trash
spec, gnome-vfs uses the old, custom ~/.Trash directory.

################

Example 1: I'm using EoG to browse some photos to store. I want to
remove some, then I use the "Move to Trash" feature inside EoG.

Result 1: trashed photos will never appear in trash:// 'cause was moved
to ~/.Trash, not .local/share/Trash. Those photos will survive as
zombies in my file system...

Example 2: my distro removed desktop icons an provided the trash applet.

Result 2: a big mess: the applet will open trash:// but will move files
to and will monitor ~/.Trash :-(

################

Some applications are moving to gio/gvfs, meanwhile, could we:
      * implement fd.o trash in gnome-vfs
      * run a (hidden) migrate trash (at Nautilus startup?) is .Trash
        exists and there are files?


PS there is a yet open bug against EoG. Alex, could you port the trash
applet to GIO?

_______________________________________________
gnome-vfs-list mailing list
gnome-vfs-list@...
http://mail.gnome.org/mailman/listinfo/gnome-vfs-list

Re: Nautilus+GIO vs GnomeApps+GNOMEVFS (aka: the clash on trash)

by Luca Ferretti :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Il giorno mar, 15/01/2008 alle 17.14 +0100, Luca Ferretti ha scritto:
> I'm playing with my jhbuild development install.
>
> We have a serious issue about trash: gio+gvfs implements the fd.o trash
> spec, gnome-vfs uses the old, custom ~/.Trash directory.

Filed Trash applet bug on bugzilla
http://bugzilla.gnome.org/show_bug.cgi?id=509759


_______________________________________________
gnome-vfs-list mailing list
gnome-vfs-list@...
http://mail.gnome.org/mailman/listinfo/gnome-vfs-list

Re: Nautilus+GIO vs GnomeApps+GNOMEVFS (aka: the clash on trash)

by Alexander Larsson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Tue, 2008-01-15 at 17:14 +0100, Luca Ferretti wrote:

> I'm playing with my jhbuild development install.
>
> We have a serious issue about trash: gio+gvfs implements the fd.o trash
> spec, gnome-vfs uses the old, custom ~/.Trash directory.
>
> ################
>
> Example 1: I'm using EoG to browse some photos to store. I want to
> remove some, then I use the "Move to Trash" feature inside EoG.
>
> Result 1: trashed photos will never appear in trash:// 'cause was moved
> to ~/.Trash, not .local/share/Trash. Those photos will survive as
> zombies in my file system...
>
> Example 2: my distro removed desktop icons an provided the trash applet.
>
> Result 2: a big mess: the applet will open trash:// but will move files
> to and will monitor ~/.Trash :-(
>
> ################
>
> Some applications are moving to gio/gvfs, meanwhile, could we:
>       * implement fd.o trash in gnome-vfs

Trash is pretty complex in gnome-vfs, so I doubt this is a good thing to
spend our time on. Converting apps to use the trash via gio seems
better. Trashing a file is far easier in gio anyway, just call the
g_file_trash() operation.

>       * run a (hidden) migrate trash (at Nautilus startup?) is .Trash
>         exists and there are files?

Yeah, we should probably do that somewhere. I was thinking gnome-session
could do it.

> PS there is a yet open bug against EoG. Alex, could you port the trash
> applet to GIO?

I've never worked on the trash applet really, and I'm busy fixing other
regressions. Ideally the maintainers of it would do the port (which
should be pretty simple).

_______________________________________________
gnome-vfs-list mailing list
gnome-vfs-list@...
http://mail.gnome.org/mailman/listinfo/gnome-vfs-list

Re: Nautilus+GIO vs GnomeApps+GNOMEVFS (aka: the clash on trash)

by Luca Ferretti :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Il giorno mer, 16/01/2008 alle 12.42 +0100, Alexander Larsson ha
scritto:
> On Tue, 2008-01-15 at 17:14 +0100, Luca Ferretti wrote:
> >
> > Some applications are moving to gio/gvfs, meanwhile, could we:
> >       * implement fd.o trash in gnome-vfs
>
> Trash is pretty complex in gnome-vfs, so I doubt this is a good thing to
> spend our time on. Converting apps to use the trash via gio seems
> better. Trashing a file is far easier in gio anyway, just call the
> g_file_trash() operation.

That's true!

However, could you please check the patch I produced for cheese? What
should we do when error is != NULL after a g_file_trash ?

http://bugzilla.gnome.org/show_bug.cgi?id=509327


_______________________________________________
gnome-vfs-list mailing list
gnome-vfs-list@...
http://mail.gnome.org/mailman/listinfo/gnome-vfs-list

Re: Nautilus+GIO vs GnomeApps+GNOMEVFS (aka: the clash on trash)

by Alexander Larsson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Wed, 2008-01-16 at 15:43 +0100, Luca Ferretti wrote:

> Il giorno mer, 16/01/2008 alle 12.42 +0100, Alexander Larsson ha
> scritto:
> > On Tue, 2008-01-15 at 17:14 +0100, Luca Ferretti wrote:
> > >
> > > Some applications are moving to gio/gvfs, meanwhile, could we:
> > >       * implement fd.o trash in gnome-vfs
> >
> > Trash is pretty complex in gnome-vfs, so I doubt this is a good thing to
> > spend our time on. Converting apps to use the trash via gio seems
> > better. Trashing a file is far easier in gio anyway, just call the
> > g_file_trash() operation.
>
> That's true!
>
> However, could you please check the patch I produced for cheese? What
> should we do when error is != NULL after a g_file_trash ?

What nautilus does is open a dialog saying there was an error, blah,
blah, then asking if you want to delete the file instead.

_______________________________________________
gnome-vfs-list mailing list
gnome-vfs-list@...
http://mail.gnome.org/mailman/listinfo/gnome-vfs-list
LightInTheBox - Buy quality products at wholesale price!