You are not logged in.

#1 2012-06-25 01:00:42

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Intercepting $HOME directory calls

I'm sick of it. Why can't developers just put their preference files and config files in .config where they're SUPPOSED to go? Regardless, rather than complain, I'm going to look for answers. Does anybody have an idea how to intercept and see where an application is looking to write to, and if it's not .config, redirect it there?

For example, application xyz wants to store a config file called .xyzrc in $HOME. However, .xyzrc should be written to $HOME/.config.
However, application abc wants to write .abcrc to the correct directory, so it is ignored.

Finally, I would prefer not to break the use of the relative ~ path.

Any ideas as to how to do this?
As a side note, no offense is meant to the developers of applications that don't use the .config directory, but seriously, why is it so hard?

Last edited by TheHebes (2012-06-30 03:21:28)


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

#2 2012-06-25 03:19:23

adamrehard
Member
From: NY, USA
Registered: 2011-11-03
Posts: 154

Re: Intercepting $HOME directory calls


"The box said requires Vista or better, so I installed Arch"
Windows != Linux

Offline

#3 2012-06-25 03:22:13

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Re: Intercepting $HOME directory calls

Wonderful. Thank you.


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

#4 2012-06-25 07:56:22

fschiff
Member
Registered: 2011-10-06
Posts: 71

Re: Intercepting $HOME directory calls

I believe that effort may have been abandoned.

A somewhat later discussion is here:

https://bbs.archlinux.org/viewtopic.php?id=77606&p=7

on something called rewritefs which may also have been abandoned.

Offline

#5 2012-06-30 03:21:15

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Re: Intercepting $HOME directory calls

Yeah, that is looking like where this is going. I tried. I really did. Probably user error, but libetc pretty much destroyed my VM. I must have rolled back the snapshot at least ten times. I just could not get it to work. So it looks like it's back to the drawing board...
Until then,  I have tried what Shapeshifter suggested in the thread fschiff linked too, and that works fairly well. I may go try to cook up something of my own to address the problem.

EDIT: Interesting side note-- Guy who wrote rewritefs is the same one who wrote libetc. It looks like he wanted to rewrite libetc using fuse to make it work better. Last update was on May 29, according to the Github page, so maybe there's hope smile

Last edited by TheHebes (2012-06-30 03:24:06)


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

Board footer

Powered by FluxBB