Re: Using the recycle bin with mc?



Thanks, Stan, but it isn't working for me.  And other people are
having the same problem:

http://ubuntuforums.org/showthread.php?t=1083954

I guess this is now offtopic in this list.  Feel free to reply in the
forum thread above.


2010/3/24 Stan. S. Krupoderov <pashelper mail ru>:
On Wed, Mar 24, 2010 at 01:31:33PM +0300, Stan. S. Krupoderov wrote:
On Tue, Mar 23, 2010 at 06:50:35PM -0700, Daniel González Gasull wrote:
Hi.

Is it possible to use the GNOME recycle bin with mc?  Is there anyway
we can make mc use the command gvfs-trash when deleting files or
folders?

Thank you.

Yes, you can try to use libtrash or write something
similar to use gvfs-trash.

Configuration looks like:

# alias in your bash/zsh config or just additional startup script
# probably you will change path to you libtrash.so
alias mc='LIBTRASH=/usr/lib/libtrash/libtrash.so.2.4; LD_PRELOAD="$LIBTRASH"; export LD_PRELOAD; mc'

# Trash name specified in /etc/libtrash.conf
# probably created by libtrash but for sure
mkdir ~/Trash

# add default recommended settings
cat > ~/.libtrash
GLOBAL_PROTECTION = YES
INTERCEPT_FOPEN = YES
INTERCEPT_FREOPEN = YES
INTERCEPT_OPEN = YES
IGNORE_EXTENSIONS= o;exe;com
Ctrl-D

# create test files
touch test1.0 test1.o test1.so

run mc and try it, deleted files should be in ~/Trash


--
Wbr,
Stan. S. Krupoderov

(let ((*PRINT-BASE* 36))
(format T "~A ~A ~A" 71373391685091 27913917 16438))




-- 
http://DjanSoft.com :: Agile Application Development with Python



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