[SOLVED] Current64: Where does the /.cache file come from?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
14:12 < rworkman> Without any debugging, looks like it's in glib/gutils.c probably
14:14 < rworkman> in g_get_user_runtime_dir()
I've made an inquiry of mclasen, the guy who does glib releases; let's wait and see what he says before any significant time is invested in debugging...
preserve_perms() usually has a config $NEW rather than a mv $NEW $OLD where files are to be treated as config files and left for the user to manage. It would probably be more in keeping with the slackware way of doing things to do that than creating a *.orig in this case.
$XDG_CACHE_HOME defines the base directory relative to which user specific non-essential data files should be stored. If $XDG_CACHE_HOME is either not set or empty, a default equal to $HOME/.cache should be used.
But no user should have / as $HOME
Last edited by Didier Spaier; 05-26-2017 at 09:46 PM.
Reason: PS added.
@burdi01:from the ChangeLog for Slackware-Current:
Code:
Fri May 26 22:40:13 UTC 2017
<snip>
rc.networkmanager: Set XDG_CACHE_HOME=/root/.cache before starting.
Thanks to allend.
Thus I assume that this thread could be marked as [SOLVED]
PS This complies to the XDG Base Specification as reminded by my previous post. Sounds logical as our friend LP is both NM's author and a co-author of the spec (1)
PPS I just checked: when /etc/rc/d.rc.M starts rc.networkmanager, $HOME is set to "/". I have no idea on why nor what sets it, but that sounds weird as POSIX states:
Code:
HOME
The system shall initialize this variable at the time of login to be a pathname of the user's home directory. See <pwd.h>.
But as nobody is logged in when rc.M starts rc.networkmanager, why is HOME already set?
Anyway as rc.M runs on behalf of root, setting XDG_CACHE_HOME as /root/.cache in rc.networkmanager is indeed the right thing to do.
EDIT (1) No LP is not author of NM, sorry for this mistake. As we say here on ne prête qu'aux riches.
Last edited by Didier Spaier; 05-27-2017 at 05:19 AM.
Reason: PPS added.
I still cannot help feeling that this solution is working around the problem rather that resolving the cause.
Anyway, marking this thread as solved.
Thks everyone.
Edit: Hmm, when reading back this post I notice that it sounds more negative than I meant it to be.
I still cannot help feeling that this solution is working around the problem rather that resolving the cause.
Anyway, marking this thread as solved.
Thks everyone.
Edit: Hmm, when reading back this post I notice that it sounds more negative than I meant it to be.
Yes, it does feel kind of ugly, but then, that's NetworkManager for you.
Yes, it does feel kind of ugly, but then, that's NetworkManager for you.
Well NM just does what's written in the aforementioned spec. How is that wrong or ugly?
The alternative would be that if HOME is set to / NM sets it to /root. I wouldn't like that at all, as it would be too much intrusive: it's simply not NM's job to set HOME. Doing that in the startup script instead is way better, as the admin can easily change this setting if so inclined.
Last edited by Didier Spaier; 05-27-2017 at 04:50 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.