summaryrefslogtreecommitdiff
path: root/gnome-session/gsm-session-fill.c
Commit message (Collapse)AuthorAgeFilesLines
* gsm-process-helper: Give useful error dataColin Walters2011-03-091-1/+6
| | | | | | | | | | | | | | | | | | | | In order for engineers to be able to extract why a tool like gnome-session-check-accelerated failed, we should print something to ~/.xsession-errors. gsm_process_helper() only returned the exit code, unless the process was killed by a signal, in which case it returned -1. However the only consumer of the code never checked the exit code, just success. So fix this by having gsm_process_helper return a normal gboolean/GError pair. As part of this, clean up the code so that it also handles the WIFSIGNALED and WIFSTOPPED cases (See "man 2 waitpid"). Also, the exit_child_simple() function was lame; we don't need to call g_spawn_close_pid() on Unix, so don't do it. https://bugzilla.gnome.org/show_bug.cgi?id=643880
* Increase is-accelerated runnable helper timeoutColin Walters2011-02-281-1/+2
| | | | | | | | | 0.5 seconds is *way* too short; we could easily get 0.25 seconds from simply loading the binary off a slower disk/fragmented filesystem etc. This is likely a temporary hack; see the bug for more discussion. https://bugzilla.gnome.org/show_bug.cgi?id=641992
* main: Better error message on not-found sessionColin Walters2011-02-241-3/+0
| | | | | | I didn't have "gnome-fallback" yet in my install, but my user had that configured. Just show a better error message for debugging.
* Make the current session name a property on the session managerAlexander Larsson2011-02-161-4/+10
| | | | | | | This way this is introspectable via dbus, and its also useful internally as a change notification if it changes at runtime. https://bugzilla.gnome.org/show_bug.cgi?id=642368
* Use "session-name" property which specifies which session to useAlexander Larsson2011-02-141-8/+17
| | | | | | | | | | | | | | Currently we have two sessions: "gnome" "gnome-fallback" This adds a GSetting (actual key defined in gsettings-desktop-schemacs) which allows choosing between these, and potentially any arbitrary .desktop file that a fork or embed may write. This key will be toggled by gnome-control-center to implement the "always fall back" preference.
* gsm: When checking for required components, abort on the first missingVincent Untz2011-02-021-0/+1
|
* gsm: Remove duplicate debug messageVincent Untz2011-02-021-1/+0
|
* gsm: Code beautificationVincent Untz2011-02-021-3/+1
|
* Fix a warning messageMatthias Clasen2011-01-271-1/+1
|
* Use fallback session if required components are missingMatthias Clasen2011-01-261-0/+62
| | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=639971 Also, avoid a segfault when no valid session is found.
* gsm: Make it possible for a .session file to define a fallback sessionVincent Untz2010-11-291-1/+48
| | | | | | | | | | | | | Two new keys are introduced: IsRunnableHelper and FallbackSession. The first one defines a helper that is run to know if the session can be used (only if the helper returns 0). The second defines the fallback session to use if the helper doesn't return 0. The helper cannot run for more than 500 ms. There is a test program to make sure that our helper process management works okay.
* gsm: Move the definition of a session from gconf to .desktop-like filesVincent Untz2010-11-291-76/+202
| | | | | | | | | | | | This will help us both for the GSettings migration and to implement the fallback from GNOME Shell to Classic GNOME. The --default-session-key argument has been changed to --session, which takes the basename (without extension) of the .desktop-like file to use. By default, gnome is used, and the gnome.session file is looked for in $XDG_CONFIG_HOME/gnome-session/sessions, $XDG_CONFIG_DIRS/gnome-session/sessions, $XDG_DATA_DIRS/gnome-session/sessions.
* gsm, capplet: Do not define IS_STRING_EMPTY in multiple placesVincent Untz2010-11-291-3/+2
| | | | Just define it in gsm-util.h once.
* gsm: Move the code filling the autostart apps to gsm-session-fill.[ch]Vincent Untz2010-11-291-0/+205