gvfs-* directories in /var/tmp

Jeremy Messenger mezz7 at cox.net
Mon May 19 20:15:26 UTC 2008


On Mon, 19 May 2008 12:40:31 -0500, Norikatsu Shigemura <nork at FreeBSD.org>  
wrote:

> On Sun, 18 May 2008 19:25:30 -0500
> "Jeremy Messenger" <mezz7 at cox.net> wrote:
>> > Did I miss something in my installation of GNOME?
>> You didn't miss anything. I have a lot of that gvfs-* in /var/tmp too  
>> and
>> clean out once a while. I was to ask about it in past, but I forgot to  
>> do
>> it.
>
> 	I'm using attached rcNG script, and every-reboot, I try to
> 	remove these directories like gvfs-*-*.

Thanks, I have modified a bit like this below. I prefer it to check if  
stuff exist before use the 'rm'.

------------------------------------
	local tmpd="/var/tmp/Tracker-*.* /var/tmp/gconfd-* /var/tmp/instmp.* \
		    /var/tmp/keyring-* /var/tmp/mapping-* /var/tmp/orbit-* \
		    /var/tmp/portupgrade* /var/tmp/virtual-*.* \
		    /var/tmp/gvfs-*-*"
	local tmpf="/var/tmp/dbus-* /var/tmp/gnome-system-monitor.*.*"

	if checkyesno ${rcvar1}; then
		echo "Clearing ${tmpd} ${tmpf}."

		for d in ${tmpd}; do
			if [ -d $d ]; then
				rm -rf $d
			fi
		done

		for f in ${tmpf}; do
			if [ -f $f ]; then
				rm -f $f
			fi
		done
	fi
------------------------------------

I don't know which is file or directory for Tracker, instmp, mapping and  
portupgrade as I don't have those. I haven't test the change yet, but it  
should work and I will find out when I reboot in someday. ;-)

Cheers,
Mezz


-- 
mezz7 at cox.net  -  mezz at FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/  -  gnome at FreeBSD.org


More information about the freebsd-gnome mailing list