Why .local/share ?
Brian J. Tarricone
bjt23 at cornell.edu
Mon Nov 10 15:47:25 PST 2008
Thiago Macieira wrote:
> Brian J. Tarricone wrote:
>> Thiago Macieira wrote:
>>> As for a lib, I very much agree that there should be a directory. In
>>> fact, I've recently started using ~/.local/bin for my own executables
>>> instead of ~/bin. That allows me to keep my $HOME clean. But I don't
>>> think an environment variable will be of much use unless it's
>>> $LD_LIBRARY_PATH...
>> I think the idea here was more for user-installed plugins that the app
>> would dlopen() at runtime rather than rely on the linker finding at load
>> time. No $LD_LIBRARY_PATH annoyance needed in this case.
>
> I'd expect each application to have its own dir in that case, to avoid
> naming conflicts.
Sure, but the idea there would be you could, say, "search all XDG lib
dirs for the suffix "/foo-app-plugins/*.so" and then it would find
everything in the user's homedir as well as system-installed plugins.
It's also a bit more standard and less "wrong" than storing binary files
(or scripts) inside a configuration directory.
-brian
More information about the xdg
mailing list