← Back to team overview

zeitgeist team mailing list archive

[Bug 769948] Re: Add support for yum

 

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.


Follow ups

References