I found it useful to generalize .local

Thiago Macieira thiago at kde.org
Mon Apr 11 06:23:50 PDT 2011


Em segunda-feira, 11 de abril de 2011, às 12:08:01, Damjan Jovanovic escreveu:
> This is not an issue that can really be fixed portably: argv[0] is
> unreliable, POSIX has no API like GetModuleHandle() and
> GetModulePath() on Windows, /proc/self/exe is Linux-only and can only
> be used for application, while searching the lines in /proc/self/maps
> for an internal symbol is the only method available to a library to
> discover its own path, only works on Linux, and is obscure and unknown
> to the vast majority of developers.

Agreed, but that's a separate problem. Of course you need the application to 
be relocatable for you to install with $HOME/.local as a prefix.

But simple scripts can be placed in $HOME/.local/bin already and building from 
source would allow one to simply say --prefix=$HOME/.local.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/xdg/attachments/20110411/5677e077/attachment.pgp>


More information about the xdg mailing list