On Fri, 21 Aug 2009 08:15:47 -0700, David Laban <alsu...@gmail.com> wrote:
2. When the application is first run, check for ~/.local (or APPDATA on
Windows) - and if user config directory-or-files is not present, copy
them
from the namespace location to ~/.local.
The app is only ever run by dbus finding the service file, so this
won't work. The file does not need to be editable once it's installed,
but if the user does not have root access, it needs to be installed in
~.local/share rather than /usr/share or wherever.
If I created an "install_xdg" function, would I be able to contribute
it to distutils/setuptools/distribute?
Aside:
It looks like providing support for "post install" scripts in
distutils/Distribute would satisfy the user cases like above.
apt/yast/etc.. already do this. seutp.py:postinstall() method perhaps?
Note that if we are doing this - package managers must also be taken into
account .. for post install should not be *run* during "setup.py install
--root=.." but only when the package is actually installed (which is
installer-specific) on the target system.
-srid
_______________________________________________
Distutils-SIG maillist - Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig