# Delete a file and trash

**URL:** <https://www.ruby-forum.com/t/delete-a-file-and-trash/158426>\
**Category:** Ruby-Gnome 2\
**Created:** [January 23, 2009, 6:40am UTC](https://www.ruby-forum.com/t/delete-a-file-and-trash/158426 "2009-01-23T06:40:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![coubi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c68b51/32.png) [@coubi](https://www.ruby-forum.com/u/coubi)\
**Post date:** [January 23, 2009, 6:40am UTC](https://www.ruby-forum.com/t/delete-a-file-and-trash/158426/1 "2009-01-23T06:40:46Z")

</div>

Hi everyone.

I was wondering if there is a convenient way in ruby/gtk2 to move a file  
to user trash. Maybe ruby/gnomevfs implement this behavior but I did not  
find the correct method in the documentation. I would prefer to require  
only gtk2 (a Gtk or GLib method).

---

<div class="post-metadata">

**Author:** ![coubi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c68b51/32.png) [@coubi](https://www.ruby-forum.com/u/coubi)\
**Post date:** [January 23, 2009, 10:05am UTC](https://www.ruby-forum.com/t/delete-a-file-and-trash/158426/2 "2009-01-23T10:05:06Z")

</div>

Vincent C. pisze:

> Hi everyone.
> 
> I was wondering if there is a convenient way in ruby/gtk2 to move a file  
> to user trash. Maybe ruby/gnomevfs implement this behavior but I did not  
> find the correct method in the documentation. I would prefer to require  
> only gtk2 (a Gtk or GLib method).

gnomevfs is deprecated, look also for gvfs

m.

---

<div class="post-metadata">

**Author:** ![coubi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c68b51/32.png) [@coubi](https://www.ruby-forum.com/u/coubi)\
**Post date:** [January 25, 2009, 10:16am UTC](https://www.ruby-forum.com/t/delete-a-file-and-trash/158426/3 "2009-01-25T10:16:02Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“[ruby-gnome2-devel-en] Delete a file and trash” on Fri, 23 Jan 2009  
06:40:46 +0100,  
Vincent C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I was wondering if there is a convenient way in ruby/gtk2 to move a file  
> to user trash. Maybe ruby/gnomevfs implement this behavior but I did not  
> find the correct method in the documentation. I would prefer to require  
> only gtk2 (a Gtk or GLib method).

We don’t have GIO bindings for now because we don’t have  
human resources to develop them. We need help!

## Thanks,

kou

---

<div class="post-metadata">

**Author:** ![coubi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c68b51/32.png) [@coubi](https://www.ruby-forum.com/u/coubi)\
**Post date:** [January 26, 2009, 3:44am UTC](https://www.ruby-forum.com/t/delete-a-file-and-trash/158426/4 "2009-01-26T03:44:24Z")

</div>

Thanks for your replies.

Marcin wrote:

> gnomevfs is deprecated, look also for gvfs  
> I am going to take a look at gvfs. Do you know where i can find  
> documentation on ruby/gvfs.

Kouhei S. wrote:

> We don’t have GIO bindings for now because we don’t have  
> human resources to develop them. We need help!

Sorry but I cannot write GIO bindings. I am currently writting my first  
application. I choose ruby to learn coding. I do not know (yet) howt to  
bind c code.

---

<div class="post-metadata">

**Author:** ![coubi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c68b51/32.png) [@coubi](https://www.ruby-forum.com/u/coubi)\
**Post date:** [January 26, 2009, 11:45am UTC](https://www.ruby-forum.com/t/delete-a-file-and-trash/158426/5 "2009-01-26T11:45:46Z")

</div>

Vincent C. pisze:

> Thanks for your replies.
> 
> Marcin wrote:
> 
> > gnomevfs is deprecated, look also for gvfs  
> > I am going to take a look at gvfs. Do you know where i can find  
> > documentation on ruby/gvfs.

gio is a part of gvfs. if there’s no gio bindings, i’m afraid that you  
can’t use gvfs

m/

---

<div class="post-metadata">

**Author:** ![coubi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c68b51/32.png) [@coubi](https://www.ruby-forum.com/u/coubi)\
**Post date:** [January 27, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/delete-a-file-and-trash/158426/6 "2009-01-27T17:13:55Z")

</div>

Marcin wrote:

> Vincent C. pisze:
> 
> > Thanks for your replies.
> > 
> > Marcin wrote:
> > 
> > > gnomevfs is deprecated, look also for gvfs  
> > > I am going to take a look at gvfs. Do you know where i can find  
> > > documentation on ruby/gvfs.
> 
> gio is a part of gvfs. if there’s no gio bindings, i’m afraid that you  
> can’t use gvfs
> 
> m/

Any plans of adding the gio to the ruby bindings? Is some work done  
already, so I could jump in?
