PDA

View Full Version : Clear recent documents -- Ubuntu Unity



kill4killin
January 29th, 2011, 09:04 PM
Ok so not to make he back story too long, as I tend to do ( jump to next paragraph for my question), I just setup a media center PC for my living room with Ubuntu 10.10 and I'm running XBMC as the media center interface which is really nice because the buttons and everything are nice and big and visible from my couch for someone as blind as I am. Gnome, however, is not so easy to see, I tried increasing the font sizes which helped for some things but for things like the open and close buttons and the text under desktop icons were all still very small so I thought that I would try out Unity on the media center. I am very impressed with it overall, while you can definitely tell that it's in development it runs well and looks clean. But now on to my question.

The only thing that I can say that I absolutely don't like is that there is no obvious way to remove the recent files from the "recent" section under the files and folders menu. I have tried the rm -f ~/.recent-used.xbel trick that I've seen around on many forum posts. While that seems to have prevented new items from being added there is still one item on there and I don't want it. Does anyone know where this information is stored so I can clear it whether manually or via some menu that's hidden somewhere?

Thanks

kill4killin
January 30th, 2011, 06:27 PM
bump \\:D/

Gold3nBoy
February 13th, 2011, 06:25 AM
I am also wondering the same. I tried ubuntu tweak, but no luck.

mutifo
February 21st, 2011, 08:48 PM
rm ~/.local/share/zeitgeist/activity.sqlite
zeitgeist-daemon --replace

mutifo
February 21st, 2011, 09:00 PM
if you want to prevent new items from being created do the following:


echo -n > ~/.recently-used.xbel
sudo chattr +i .recently-used.xbel

if you change your mind just do:

sudo chattr -i .recently-used.xbel

phonicboom
April 10th, 2011, 07:42 AM
The only thing that I can say that I absolutely don't like is that there is no obvious way to remove the recent files from the "recent" section

Not tried this but how about going to startup items and turning off the zeitgeist feature then logging back in.

When development settles, perhaps even now, their should be a simple enough way to edit out the file lense so it does not even show in the unity launcher.

Issssy
January 25th, 2012, 05:35 PM
It would be nice if there was a way in the Unity UI to do this (other than command line). I don't want to turn it off, but I do like to periodically clear it.

Krytarik
January 25th, 2012, 07:42 PM
It would be nice if there was a way in the Unity UI to do this (other than command line). I don't want to turn it off, but I do like to periodically clear it.
It is; if running Oneiric 11.10, simply install "Activity Log Manager" from the official repos; if Natty 11.04, please see this guide:

http://www.tuxgarage.com/2011/05/clear-tweak-zeitgeist-historys-settings.html

Regards.

Issssy
January 27th, 2012, 08:54 PM
I am running 11.10.

I down-loaded and installed it (search for the full string in the software manager -- activity-log-manger).

Ran it and deleted the last week of history. Went to recent docs in Dash and they were still there. I re-booted, and they were gone. I assume you have to re-boot to get the deletion to take?

File names are still there in movie player... does it maintain its own list?

Krytarik
January 27th, 2012, 09:49 PM
I down-loaded and installed it (search for the full string in the software manager -- activity-log-manger).

Ran it and deleted the last week of history. Went to recent docs in Dash and they were still there. I re-booted, and they were gone. I assume you have to re-boot to get the deletion to take?
May it be that you didn't restart the Zeitgeist daemon after installing Activity Log Manager?

Otherwise, restarting it after clearing the history should be sufficient; via Alt+F2, run:

zeitgeist-daemon --replace
File names are still there in movie player... does it maintain its own list?
Yep, most apps do that.

Issssy
January 27th, 2012, 10:34 PM
Totem Movie Player pulls its recent files from Recent Documents; not its own list.

http://www.howtogeek.com/howto/ubuntu/clear-history-from-totem-movie-player-in-ubuntu/

Does the zeitgeist daemon actually clear the Recent Documents list, or is the list now "orphaned" in Unity? Is there a synchronization bug here?

Krytarik
January 27th, 2012, 11:05 PM
Totem Movie Player pulls its recent files from Recent Documents; not its own list.
Yeah, you are right, I didn't take the old global "Recent Documents" infrastructure into account; to clear that data, run:

rm ~/.local/share/recently-used.xbel
Does the zeitgeist daemon actually clear the Recent Documents list, or is the list now "orphaned" in Unity? Is there a synchronization bug here?
As you can see, there are currently two activity logs running parallelly: the old "Recent Documents" system, which is still being used by most apps; and the new Zeitgeist system. So to clear all log data, you need to clear both of them.

Btw., please notice my latest edit to my previous reply: did you restart the Zeitgeist daemon before using the Activity Log Manager, clearing your history?

Issssy
January 28th, 2012, 12:09 AM
I did. I'll run some tests and try it. Thank you!