Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/model/session.py
Commit message (Collapse)AuthorAgeFilesLines
* Session: Properly check for logindMartin Pitt2013-03-221-1/+1
| | | | | | | | | | | session.py talks to logind, so it needs to specifically check if logind is running. /sys/fs/cgroup/systemd will be present also when systemd was built without logind (--disable-logind). For details, see: <https://mail.gnome.org/archives/desktop-devel-list/2013-March/msg00092.html Acked-by: Simon Schampijer <simon@laptop.org>
* Run sugar-convert.sh for automatic conversion from sugar.* to sugar3.* importsSimon Schampijer2012-09-071-2/+2
| | | | | | | | | | | | | | Run sugar-convert.sh [1] for automatic conversion from sugar.* imports to sugar3.* imports. This is only on a best-effort basis; the code will be in a broken state after this patch and need to be fixed manually. The purpose of committing the intermediate, non-working output is to make it reproducible. It's impractical to manually review the changes. [1] http://dev.laptop.org/~manuq/sugar-convert.sh Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Run pygi-convert.sh for automatic conversion from GTK+ 2 to GTK+ 3Simon Schampijer2012-09-071-3/+3
| | | | | | | | | | | | | | | | | | Run pygi-convert.sh for automatic conversion from GTK+ 2 to GTK+ 3 and pygobject+gobject-introspection. This is only on a best-effort basis; the code will be in a broken state after this patch and need to be fixed manually. The purpose of committing the intermediate, non-working output is to make it reproducible. It's impractical to manually review the changes. The exact version used was 2d8f48f4ff56bb75985136452b50b75895258608 from the main pygobject repository [1]. [1] git://git.gnome.org/pygobject Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel Quiñones <manuq@laptop.org>
* If available use systemd to reboot/shutdown the systemSimon Schampijer2012-03-141-15/+36
| | | | | | | | | | | ConsoleKit is being obsoleted by systemd [1]. Accordingly use the systemd D-Bus API now to Reboot and PowerOff the system. We keep the fallback for ConsoleKit around. This adds a dependency on systemd. [1] http://fedoraproject.org/wiki/Features/ckremoval Signed-off-by: Simon Schampijer <simon@laptop.org> Reviewed-by: Manuel Quiñones <manuq@laptop.org>
* use ConsoleKit instead of HAL for shutdown/rebootSascha Silbe2011-02-171-5/+5
| | | | | | | | | | | | | | HAL [1] is dead [2], ConsoleKit [3] now handles shutdown / reboot. Tested on XO-1.5 running Debian Squeeze with consolekit 0.4.1-4. [1] http://www.freedesktop.org/wiki/Software/hal [2] http://lists.freedesktop.org/archives/hal/2008-May/011560.html [3] http://www.freedesktop.org/wiki/Software/ConsoleKit Signed-off-by: Sascha Silbe <silbe@activitycentral.com> Tested-By: Simon Schampijer <simon@laptop.org> Acked-By: Simon Schampijer <simon@laptop.org>
* PEP8 cleanup: don't use has_key()Sascha Silbe2010-11-241-1/+1
| | | | | | | | has_key() has been deprecated for quite some time now. Reviewed-by: James Cameron <quozl@laptop.org> Reviewed-by: Simon Schampijer <simon@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
* PEP8 cleanup: ensure lines are shorter than 80 charactersSascha Silbe2010-11-241-4/+4
| | | | | | | | This is important for Sugar because the XO has a small screen where long lines would make the code hard to understand (because you need to constantly scroll horizontally). Reviewed-by: James Cameron <quozl@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
* pep8 cleanup: fix number of blank linesSascha Silbe2010-11-241-0/+3
| | | | | | Reviewed-by: James Cameron <quozl@laptop.org> Reviewed-by: Simon Schampijer <simon@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
* Minor pylint cleanupsSimon Schampijer2010-03-101-1/+1
|
* fail gracefully if system DBus unreachable (#1403)Sascha Silbe2010-01-111-7/+7
| | | | | | | | | | | | | | | System bus (DBus) is only required for optional features (non-permanent connection to jabber server, removable media, etc.), so fail gracefully (but output errors to logs) if it is unreachable. This aids testing Sugar inside chroots. Tested: - inside chroot (no system bus): errors in log, neighbourhood shows buddies - on XO-1 (regular session, no NM): no errors, neighbourhood shows buddies, battery shown - on XO-1 (regular session, NM): no errors, neighbourhood shows buddies and networks, battery shown, disconnecting + automatic reconnect works, shutdown works Signed-off-by: Sascha Silbe <sascha@silbe.org>
* Shutdown/Reboot fails when multiple users are logged in #246Aleksey Lim2009-09-301-7/+12
|
* trim EOL (end-of-line) spaces on source filesSascha Silbe2009-08-251-2/+2
|
* Give time for atexit to execute when closing the emulator #435Tomeu Vizoso2009-02-251-0/+7
|
* A bit of refactoring to get rid of the confusing service package.Marco Pesenti Gritti2008-10-221-0/+77