| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Sometimes quit X slowly, adding this to avoid restart
http://defect.opensolaris.org/bz/show_bug.cgi?id=12795
|
|
|
|
| |
in Exec of .display files
|
|
|
|
| |
Exec of ConsoleKit .display files
|
| |
|
|
|
|
|
|
|
|
|
| |
This change is fix console-kit-daemon crash when user login with added feature
"specify SEAT_ID when adding a new seat"
At the same time, quering GdmDisplay D-Bus interface is a better way to get
properties like display-type, seat-id. So I revert gdm_session_direct_new back
without display-type.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Corresponding ConsoleKit multi-seat commit is
6a432264767b3e8383270c349899926ca2d326be
This allow the user session can inherit display-type property from login
window session. It is very useful for dynamic usage like Sunray to get
right sessions list which it only care about. Without this change, the user
session won't have the right display-type property, hence can not
get the right results for specific display-type.
For example:
1) Sunray will create a login window session
$/usr/sbin/ck-seat-tool -a --display-type=Sunray display=:11
2) If we run
$/usr/bin/ck-list-sessions -f session-id,x11-display,display-type
'Session11' ':11' 'Sunray'
'SessionSeat1Local' ':0' 'Local'
3) If user get login, the login session Session11 will be removed,
a new user session Session12 will be created.
Without this commit, Session12 do not display-type
$/usr/bin/ck-list-sessions -f session-id,x11-display,display-type
'Session12' ':11' ''
'SessionSeat1Local' ':0' 'Local'
With this commit, Session12 inherit display-type from Session11,
that is what we want.
$/usr/bin/ck-list-sessions -f session-id,x11-display,display-type
'Session12' ':11' 'Sunray'
'SessionSeat1Local' ':0' 'Local'
The display-type property is typically passed as following sequence:
1) console-kit-daemon init and create a static seat "Seat1" and
create a un-open session "SessionSeat1Local", stay unmanaged status
2) gdm-binary init and send "Manage" for "Seat1"
3) console-kit-daemon go through all un-open sessions for "Seat1", and
send out "OpenSessionRequest" for that session with property display-type.
4) gdm-binary receive "OpenSessionRequest" for given session,
4.1) Create a GdmDisplay with property display-type.
4.2) Spwan a gdm-simple-slave process.
4.3) Create GdmSimpleSlave with property display-type by quering GdmDisplay.
4.4) Create a GdmSessionDirect with property display-type.
4.5) Sqawn gdm-session-worker process, the properties includs display-type
are get from "Setup" or "SetupForUser".
5) When user sucessfully logged in, GdmSessionWorker will create a user
session by call "OpenSessionWithParameters" with property display-type
6) console-kit-daemon remove "OpenSessionWithParameters", then create a new
session "Session1" with property display-type.
|
|
|
|
| |
http://defect.opensolaris.org/bz/show_bug.cgi?id=11224
|
|
|
|
|
|
| |
gdm-session-worker process.
This allow user session quit completely.
|
|
|
|
| |
Seat method "Unmanage"
|
|
|
|
| |
We leave other seat types for other programs.
|
|
|
|
| |
It was renamed.
|
|
|
|
| |
It was renamed.
|
| |
|
|
|
|
| |
The name got changed
|
|
|
|
| |
It was incorrectly using the string type before.
|
|
|
|
|
|
|
| |
If the VT wasn't substituted by the time it got to us,
then that means we need to figure one out. The easiest
way to do that is to just not pass a VT argument and let
the X server figure it out.
|
|
|
|
|
| |
ConsoleKit will ask for an entire Seat to get removed in
some circumstances. This patch handles that request.
|
|
|
|
|
| |
This way we'll easily be able to access to the
proxies from their path.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now we:
- keep a map of sessions to displays, so we can easily access which
display a session is associated with.
- If a display is blocked we now queue add requests dealing with it until
it is unblocked.
- Only create dynamic displays. Creating static displays dynamically
based on events from ConsoleKit doesn't really make much sense.
|
|
|
|
|
|
|
| |
Static displays don't chain up because they want to
handle respawn transparently. Dynamic displays should
chain up, so that the factory gets notified when they go
away.
|
|
|
|
|
| |
It's really only there to handle respawn for static displays, but
static displays handle respawn in a different way so it's dead code.
|
|
|
|
|
|
| |
The slave sets the hint on its display during login that
it's going to be opening a session on it soon, so ConsoleKit
requests should be ignored.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This property is just a hint for the display factory to
queue SessionToAdd requests from consolekit instead of
processing them immediately.
This will be useful for the slave to lock a display during
the critical moment after the login window session is closed
before the user's session is opened.
Note, the display factory doesn't look at the hint yet, and the
slave doesn't set it, yet, either.
|
|
|
|
|
|
|
| |
When the user logs in the greeter session is
closed and a new one is opened. We want to make sure the
display the user logged in at knows about the new session
running on it.
|
|
|
|
|
| |
We'll need it for properly tracking which session is
active on a display.
|
|
|
|
|
|
|
| |
When ConsoleKit requests the display manager open
a session with the "SessionToAdd" signal, it needs
to get told during the OpenSession call which session
is getting opened.
|
|
|
|
|
|
| |
The SessionToAdd signal has a more generic signature now.
This commit just does the bare minimum to work with the new
signature.
|
|
|
|
| |
See http://bugzilla.gnome.org/show_bug.cgi?id=536355
|
|
|
|
| |
See http://bugzilla.gnome.org/show_bug.cgi?id=536355
|
|
|
|
| |
s/queing/queueing/
|
|
|
|
|
|
| |
Before the details were getting dropped.
See http://bugzilla.gnome.org/show_bug.cgi?id=569741
|
|
|
|
|
|
|
| |
There are FIXME for that in the code, so I just
went ahead and filled the hole.
http://bugzilla.gnome.org/show_bug.cgi?id=569760
|
|
|
|
|
|
|
| |
Move an extern declaration out of a function definition
to silence gcc warnings.
See http://bugzilla.gnome.org/show_bug.cgi?id=568516
|
|
|
|
|
| |
That's a made up concept used solely by the implementation,
and is not something the user should ever be confronted with.
|
|
|
|
|
|
| |
This fixes a build failure on OSX.
See http://bugzilla.gnome.org/show_bug.cgi?id=568487
|
|
|
|
|
|
| |
It told us it's ready so let's not waste time.
See bug http://bugzilla.gnome.org/show_bug.cgi?id=570615
|
|
|
|
|
|
|
| |
If it's default then the right thing should automatically
anyway.
See http://bugzilla.gnome.org/show_bug.cgi?id=572765
|
|
|
|
|
|
|
|
| |
* daemon/main.c
(bus_proxy_destroyed_cb),
(main)
* gui/simple-chooser/gdm-host-chooser-widget.c,
(xdmcp_discover)
|
|
|
|
|
|
| |
Previously, some messages were getting dropped.
http://bugzilla.gnome.org/show_bug.cgi?id=574338
|
|
|
|
|
| |
Some conditional checks were repeated in a large else if block
in session_worker_message leading to dead code.
|
|
|
|
|
|
| |
Before the flag was never getting set causing btmp records to get
written when the session and slave are killed around the same time
(by switching runlevels)
|
|
|
|
| |
The patch was provided by Michael Young in rhbz#496882.
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-04-08 Brian Cameron <brian.cameron@sun.com>
* daemon/gdm-session-solaris-auditor.c: Correct reversed if-test.
* daemon/gdm-session-worker.c: Fix setting of PAM_TTY on Solaris.
Also make sure that the auditor is provided the username on failed
login by getting PAM_USER. Without this patch, if you select the
"Other" button and have a failed login, username will not be set.
svn path=/trunk/; revision=6803
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-04-01 Hans Petter Jansson <hpj@novell.com>
Bug 568590 - Environment doesn't get passed on to jobs, leading
to unlocalized PAM messages.
* daemon/gdm-session-worker-job.c
(listify_hash): Make sure values are not NULL.
(copy_environment_to_hash): New function.
(get_job_environment): Actually copy the environment into the hash
to get passed on to job.
svn path=/trunk/; revision=6800
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-03-27 Ray Strode <rstrode@redhat.com>
Fix assorted compiler warnings.
* gui/simple-greeter/gdm-user-chooser-widget.c
(add_user), (get_stock_person_pixbuf),
(get_logged_in_pixbuf): Add some widget casts.
* gui/simple-greeter/gdm-languages.c
(make_codeset_canonical_for_locale): remove unused
variable
* gui/simple-greeter/gdm-layouts.c: Make the layout
member of LayoutData const char *.
* gui/simple-greeter/gdm-remote-login-window.c
(xserver_died), (stop_xserver): drop unused functions
* gui/simple-greeter/gdm-language-option-widget.c
(gdm_language_option_widget_set_current_language):
drop misplaced &
* gui/simple-greeter/gdm-user.c (curved_rectangle): don't
assume width == 0, height == 0 conditions will work reliably,
instead check for < EPSILON
* common/gdm-common.[hc] (gdm_make_temp_dir):
Make the constness of the return value and inout argument
reflect the way it's being called.
* daemon/gdm-display-access-file.c
(_create_xauth_file_for_user): Make dir_name const
* daemon/gdm-display.c (gdm_display_real_manage):
drop unused variables
svn path=/trunk/; revision=6796
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-03-23 Ray Strode <rstrode@redhat.com>
Bug 573461 - Load user's settings through "other entry"
* daemon/gdm-session-worker.c
(gdm_session_worker_update_username):
Don't try to load new user settings until after updating
username state. This allows saved settings to load
when choosing "Other" instead of the associated name
from the chooser. Based on Patch by Mingxi Wu
svn path=/trunk/; revision=6794
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-03-19 Ray Strode <rstrode@redhat.com>
* daemon/gdm-display-access-file.c
(_get_auth_info_for_display):
Use gethostname() instead of g_get_host_name(),
in xauth database since the latter doesn't give
up to date information when the hostname changes.
svn path=/trunk/; revision=6791
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-03-19 Ray Strode <rstrode@redhat.com>
* daemon/gdm-display-access-file.c
(_create_xauth_file_for_user),
(_clean_up_stale_auth_subdirs):
Remove empty auth subdirs which can
creep in from system crashes.
svn path=/trunk/; revision=6790
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-03-16 Ray Strode <rstrode@redhat.com>
Give greeter and slave access to display
independent of hostname.
* daemon/gdm-slave.c
(gdm_slave_connect_to_x11_display):
XSetAuthorization before XOpenDisplay so
that the slave can connect even if hostname
changes. Call XAddHosts after XOpenDisplay
so that clients run by the slave and the
greeter can connect even if the hostname
changes.
svn path=/trunk/; revision=6782
|