| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
I didn't have "gnome-fallback" yet in my install, but my user
had that configured. Just show a better error message for
debugging.
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=639971
Also, avoid a segfault when no valid session is found.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Just define it in gsm-util.h once.
|
|
|