Refactoring of commit 363cf1ab7390a113c64390357dede0e452b91a58
authorCesare Tirabassi <norsetto@ubuntu.com>
Sat, 14 Nov 2009 14:57:45 +0000 (15:57 +0100)
committerCesare Tirabassi <norsetto@ubuntu.com>
Sat, 14 Nov 2009 14:57:45 +0000 (15:57 +0100)
commit0ee5e9935a52e116d7897c1d4b381440dcb83ae6
tree56e853698a2c9ed855d6a0dcbf23c14b7e0e0a11
parent44de7fe6be30012e41d7dd0019bd0c6551c9277b
Refactoring of commit 363cf1ab7390a113c64390357dede0e452b91a58

The problem with the original commit was that some session-managers set
stdin to /dev/null for the processes they launch, therefore the variable
wasn't very effective.
This commit change the variable conky_user_time to user_time.
This variable has a mandatory argument, a console identifier
(eg. tty7, pts/0, etc.).
Once called, this will list how long the user for the given console has been
logged in for.
This commit also allows multiple user_time to be specified for different
consoles, as well as correctly handle a conky restart.
doc/variables.xml
extras/nano/conky.nanorc
extras/vim/syntax/conkyrc.vim
src/conky.c
src/conky.h
src/core.c
src/text_object.h
src/users.c