You are not logged in.
Pages: 1
Topic closed
Hi
I am trying to stop GTK from writing to the ~/.local/share/recently-used.xbel file, as this creates a heavy load of writes on the SSD, when I select multiple files in a file chooser for opening. If I delete that file, and even the .local directory, it is still re-reated by the system. Any way to get rid of this problem, without hacking and recompiling whatever is responsible for this?
My thanks in advance.
Regards
Neoklis ... Ham Radio Call: 5B4AZ
Offline
Have you tried making it read only? Or using a symlink? For the latter you could have the destination file created in /tmp or /dev/shm when you logon.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
It seems symlinking doesn't work, it gets recreated(switched from symlink to a regular file) if something(like firefox) needs to to access the file. This guy seems to have found the solution: add "gtk-recent-files-max-age=0" to your ~/.gtkrc-2.0. It seems though that the modification time changes even though nothing gets written into the file every time you e.g. save something in firefox.
Last edited by schalox (2012-03-15 16:43:09)
Offline
Create a directory called "recently-used.xbel" inside "~/.local/share/".
Offline
Create a directory called "recently-used.xbel" inside "~/.local/share/".
Clever! that stops writing to recently-used.xbel. So does chattr +i recently-used.xbel or making it read-only.
Unfortunately though GTK first creates a temporary recently-used.xbel.xxxxx file and then apparently moves
it to recently-used.xbel, so writng to the SSD never stops.
Someone seems to have done everything possible to make sure this file is written to... so it seems the only
way to save my SSD is to make the .local/share/ directory a symlink to /tmp or /dev/shm. Unfortunately this
would mean that the geeqie and gegl directories wil be lost on reboot, although they are also re-created
by geeqie and gimp.
Thanks fr the tips!
Regards
Neoklis ... Ham Radio Call: 5B4AZ
Offline
I had exactly the same problem with recently-used.xbel. Even though I'm not using an SSD, it annoyed me to no end that it was constantly writing to the disk. I also view it as a privacy issue as I may not want every file and directory I view to have been written to the disk.
I used chattr +i at first too, but eventually I just changed my active home directory to /tmp (which is one big ramdisk on my system). I wrote synclinks specifically for the purpose of maintaining a subset of files in the active home directory. I just add files and directories that I want to keep to a plaintext list and run synclinks when I log in and out. The list enables fine-grained control over exactly what is symlinked into the directory and what changes are propagated back to the disk.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
I wrote synclinks specifically for the purpose of maintaining a subset of files in the active home directory. I just add files and directories that I want to keep to a plaintext list and run synclinks when I log in and out. The list enables fine-grained control over exactly what is symlinked into the directory and what changes are propagated back to the disk.
That sounds good - thanks! I will give it a try. I have something similar for the firefox directory to avoid caching etc on disk. With synclinks I guess I won't need it anymore.
Regards
Neoklis ... Ham Radio Call: 5B4AZ
Offline
you could also use...
ln -s /dev/null recently-used.xbel
this will stop write errors and keep your terminals clean if you are starting from a terminal session. -cheers
Offline
Offline
you could also use...
ln -s /dev/null recently-used.xbel
this will stop write errors and keep your terminals clean if you are starting from a terminal session. -cheers
<mod power abuse>
Many applications remove the existing file and create a new one so that will not work. The symlink will soon be replaced by a regular file.
</mod power abuse>
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
You should add to this post that it might be worth trying to use 'chattr -i recently-used.xbel' to try to stop any program from replacing it. I guess having a blank file with this attribute might also work...
Maybe it is +i... I can never remember.
Last edited by ewaller (2014-03-29 00:34:23)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Pages: 1
Topic closed