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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ xdg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xdg
