summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2007-03-06remove debug noiseWilliam Jon McCann1-1/+1
2007-03-06add very basic idle monitoring of text sessions and rework parameter parsingWilliam Jon McCann2-23/+205
Rework the parameter parsing so it is a bit more robust and so that parameters can get passed to the constructor.
2007-03-06use paths.h if availableWilliam Jon McCann3-12/+37
2007-03-06exit if we can't acquire name at startup and fix a glib warningWilliam Jon McCann1-9/+32
2007-03-06check for empty strings as well as nullWilliam Jon McCann1-7/+9
2007-03-06use a slightly more sophisticated rule for adding sessions to static seatWilliam Jon McCann2-5/+33
2007-03-06allow for the possibility of matching multiple sessions for deviceWilliam Jon McCann1-15/+145
In the event that there is more than one session that matches a particular tty when the VT changes we use the following rule: 1. take the oldest session where display-device == active VT device 2. take the oldest session where x11-display-device == active VT device
2007-03-05add x11-display-device to parse tableWilliam Jon McCann2-6/+9
2007-03-05rename host-name in one more placeWilliam Jon McCann1-6/+6
2007-03-05rename host-name to remote-host-name to make it more intuitiveWilliam Jon McCann3-27/+32
2007-03-05add two more proc sysdep functionsWilliam Jon McCann2-0/+57
2007-03-05add x11-display-device attributeWilliam Jon McCann3-92/+143
In certain cases it is necessary to distinguish the display-device (tty of session leader) from the x11-display-device (tty of xorg process).
2007-03-05use an async job to collect session infoWilliam Jon McCann4-76/+672
Use an async helper job to collect session info for the OpenSession() method.
2007-03-02add linux backends for collecting session informationWilliam Jon McCann2-9/+68
These tools will be used to generate and verify the parameters used to open a session.
2007-02-28lay the groundwork for making open session asyncWilliam Jon McCann1-118/+252
Restructure things a bit so that we can be completely async about creating sessions. We want to do this so we can use callouts to gather session info or to verify info. Also make the OpenSession create a parameter list and then create the session rather than creating the session and changing attributes. This is less racy and the session will be complete and correct before any signals are emitted.
2007-02-28don't rely on evironment getting updated in python scriptsWilliam Jon McCann1-1/+4
2007-02-26update news for releaseWilliam Jon McCann1-1/+2
Also fix a distcheck error.
2007-02-26rename some items in proc.h api; add some more error checkingWilliam Jon McCann3-64/+99
Make the proc.h API more coherent. Convert some warnings to debug statements. Fix two leaks. Add more error checking.
2007-02-21add support for glib < 2.12William Jon McCann2-3/+49
Copy the iso8601 function from glib to support versions less than 2.12.
2007-02-21make separate test scripts for open session methodsWilliam Jon McCann3-0/+45
2007-02-21don't use null parametersWilliam Jon McCann1-15/+17
2007-02-20add a system-idle-hint and system-idle-since-hintWilliam Jon McCann3-22/+166
The system idle hint is TRUE when there are no busy (ie non-idle) sessions. So the system is idle when there are no sessions or all sessions are idle.
2007-02-20make the idle hint getters sync dbus methodsWilliam Jon McCann3-11/+20
This makes it easier to use from C code. Also fix a bug where we weren't emitting the argument in the idle-hint-changed signal.
2007-02-20rename idle methods and signal to indicate they are hintsWilliam Jon McCann3-49/+49
Rename GetIdle to GetIdleHint (etc) to make it clear that these are not authoritative properties.
2007-02-19limit the use of errnoWilliam Jon McCann1-5/+10
Try to limit the use of errno in case it can change.
2007-02-19handle the no console fd case betterWilliam Jon McCann2-10/+38
Don't spew warnings when getfd() can't find a suitable console fd. Also add a comment to note where getfd.c comes from.
2007-02-19improve thread safetyWilliam Jon McCann1-52/+174
Change to using an async queue for events from VT watching threads. Add mutex protection to shared data. Compress the event queue when possible by discarding all but the most recent VT activation event.
2007-02-15add creation and idle-since timesWilliam Jon McCann3-0/+61
Added GetCreationTime and GetIdleSince methods. And added the output to the list-sessions tool.
2007-02-15implement get/set idle methodsWilliam Jon McCann3-11/+173
Add the GetIdle and SetIdle methods, and the IdleChanged signal. SetIdle is restricted to the uid of the session in question.
2007-02-15restrict access to CloseSessionWilliam Jon McCann1-0/+77
Only allow the uid and pid that opened the session to close it.
2007-02-15convert all tabs to spacesWilliam Jon McCann3-93/+93
2007-02-15fix compiler warningWilliam Jon McCann1-3/+6
2007-02-13fix warning from missing includeWilliam Jon McCann2-5/+6
2007-02-13create and delete pid fileS.Çağlar Onur1-1/+24
While try to play with ConsoleKit i realize it cannot create its pid file, so if needed attached patch adds that with copy/paste from PolicyKit :).
2007-02-12use the supplied vt number when updating active sessionWilliam Jon McCann1-12/+19
Just the use vt number given by the vt-manager instead of asking for the current vt again. A little bit less racy this way.
2007-02-08Bump thread stack size up to 64kWilliam Jon McCann1-1/+1
The minimum stack size 16k seems to crash glibc when we do printf in debug.
2007-02-07support for reconnecting to the system busWilliam Jon McCann1-45/+153
Instead of exiting on disconnect this attempts to reconnect. Based on patch from: Timo Hoenig <thoenig@suse.de>
2007-02-07reduce the debug buffer sizeWilliam Jon McCann1-6/+6
Reduce the buffer size in the debugging code.
2007-02-06Don't keep last session active when switching to a VT withoutWilliam Jon McCann1-3/+1
a session registered on it. Patch from: David Zeuthen
2007-02-06Add some more debugging outputWilliam Jon McCann2-2/+10
2007-02-06Make threads use minimum stack size rather than the default.William Jon McCann1-1/+1
Patch from: mclasen@redhat.com
2006-11-06Fix some small leaks. Add --timed-exit to daemon for valgrinding.William Jon McCann5-5/+18
2006-11-06Show message even when error is NULL. Fix valgrind script.William Jon McCann3-3/+6
2006-10-31Add a script to test FUS related functionality.William Jon McCann3-10/+71
Fix a problem where error was reported twice.
2006-10-27Add .gitignore files and rename tool.William Jon McCann1-0/+13
2006-10-27Actually remove files and remember to use commit -a.William Jon McCann6-1403/+0
2006-10-25Initial importWilliam Jon McCann27-0/+5894