From: Jonatan L. <li...@ky...> - 2005-12-01 10:49:47
|
On Wed, 30 Nov 2005 06:26:02 -0500 Peter <sw...@ho...> wrote: > On Tue, 29 Nov 2005 23:34:02 -0200, Jonatan Liljedahl wrote: > > I'm pleased that after so long, avfs is starting to get some attention > again! > > snip..... > > I would like to add: > > > > Note that avfsd can be started multiple times if the user logs out > > and then back in, that's why I use this script in my ROX-Session > > AutoStart folder which checks if it's already mounted first: > > > > #!/bin/sh > > exec 1>&2 > > MntDir=${HOME}/.avfs > > grep -q "avfsd ${MntDir}" /proc/mounts || { > > echo Mounting AVFS on $MntDir... > > unset LD_PRELOAD > > avfsd $MntDir > > } > > Really? I have the mountavfs file (unmodified) in my .bash_profile > and it will start or ignore avfs based on /proc/mounts. I have not > noticed the problem you alert the user to (or I am too blind to see > it :) ). But, then again, I hardly ever log out so maybe I'm wrong. > Wouldn't be the first time. Well, is that "mountavfs" file not the (or a similar) file which I just posted above? > > NOTE: As you see, I unset LD_PRELOAD before I start avfsd. The > > reason for this is that I have had trouble with libtrash running > > with the avfs fuse daemon! So I think this is a good thing to do if > > you're using libtrash... > > > I guess I'm lucky. I have had no trouble with this facility. But then > again, I don't delete files while viewing avfs. Is that what you are > referring to? I don't remember the exact problem, but I think it was something like avfs not working at all if libtrash was loaded. You said you called mountavfs from your ~/.profile... Where do you set LD_PRELOAD to load libtrash? before or after this? > However, I have run into trouble when viewing the ~/.avfs directory > and trying to open a zip or whatever compressed file in it. Rox tries > to add ~/.avfs to the run action when it's already in that dir. Yes, this is a problem... You should not go outside the archive which put you under ~/.avfs in the first place... A fix for this would be if rox had a cmdline option to not allow that filerwindow to go any level up in directory level! > > BTW, maybe there should be an AutoStop folder too? Then one could > > "fusermount -u ~/.avfs-mount" automagically at logout. > > I've suggested something like that too for ROX-Session. Good idea. > However, it could also be handled at the user level as well. > Enlightenment now has Start/Stop/Init scripts that can be run which > is useful. (ROX-Session is also user level...) I'm using OroboROX so I'll need to depend on ROX-session for such functionality. /Jonatan -=( http://kymatica.com )=- |