Remove file to recycle bin

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Experienced Solver
Experienced Solver
Posts: 78
Joined: Mon Aug 30, 2004 8:52 am

Remove file to recycle bin

Post by KaReL » Wed Jan 09, 2008 9:19 am


Has anyone some portable code for removing a file to the recycle bin (windows), Trash Can (linux) and Trash (Mac)?

wxWidgets: SVN/trunk
OS: WinXP/2 + Ubuntu + Mac 10.4.11
Compiler: VS2005 + GCC 4.2 + GCC 4.0.1

User avatar
Experienced Solver
Experienced Solver
Posts: 80
Joined: Tue Sep 04, 2007 6:03 pm
Location: Lembeek - Belgium

Post by alchemist » Wed Jan 09, 2008 11:43 am


For Linux, it will depend on the window manager (Gnome, Kde, XFCE, fvwm), I don't know if there is a standard method (even the recycle bin is named "~/Trash" of something like that.

PS: the uncle of my wife live at Esdoornplein ;)
Kind Regards,
Xavier Miller.

Post Reply