For ls it's true, because ~ is expanded by bash. Python works in a bit 
different way:
    $ sudo python
    >>> import os
    >>> os.getenv("HOME")
    '/root'
    >>> import os.path
    >>> os.path.expanduser("~")
    '/root'

Yes, there are few environment variables preserved (like USERNAME), but
sudo changes your working environment (you can easily check: compare
`env` output with `sudo env` output).

So, for zeitgeist-daemon running as root it's home directory is /root
and we should decide what to do in this kind of a situation. Should I
report this directly to Zeitgeist and see if daemon guys can figure
something out?

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/769948

Title:
  Add support for yum

Status in Zeitgeist Data-Providers:
  New

Bug description:
  I'm not sure if adding this to Zeitgeist makes sense, but sometimes I would 
like to see what package (and when) I've installed without opening PackageKit 
and browsing logs.
  If Zeitgeist Data-Providers team also would like this in Zeitgeist, I'm 
willing to write a plugin.

_______________________________________________
Mailing list: https://launchpad.net/~zeitgeist
Post to     : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp

Reply via email to