Commit 409d9fc
gsm: Disconnect all dbus clients when dbus is disconnected
When we receive the Disconnected signal from dbus on the session bus,
then we know we won't be able to talk to dbus clients anymore, so mark
them as disconnected. Also, do not restart them even if they're supposed
to be autorestarted, as we won't be able to track them.
At this point, the session is kind of hosed. We could possibly decide
to simply leave, but we don't do it in case it's a user session and
there's unsaved data.
This helps a lot in the case of the gdm greeter, see
https://bugzilla.gnome.org/show_bug.cgi?id=658481
Adapted from https://gitlab.gnome.org/GNOME/gnome-session/commit/ae8fa5371 parent 0f4afbb commit 409d9fc
1 file changed
+53
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
1798 | 1799 | | |
1799 | 1800 | | |
1800 | 1801 | | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
1801 | 1808 | | |
1802 | 1809 | | |
1803 | 1810 | | |
| |||
1852 | 1859 | | |
1853 | 1860 | | |
1854 | 1861 | | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
1855 | 1868 | | |
1856 | 1869 | | |
1857 | 1870 | | |
| |||
1865 | 1878 | | |
1866 | 1879 | | |
1867 | 1880 | | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
1868 | 1890 | | |
1869 | 1891 | | |
1870 | 1892 | | |
| |||
1952 | 1974 | | |
1953 | 1975 | | |
1954 | 1976 | | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
1955 | 2001 | | |
1956 | 2002 | | |
1957 | 2003 | | |
1958 | 2004 | | |
1959 | 2005 | | |
| 2006 | + | |
1960 | 2007 | | |
1961 | 2008 | | |
1962 | 2009 | | |
| |||
1970 | 2017 | | |
1971 | 2018 | | |
1972 | 2019 | | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
1973 | 2026 | | |
1974 | 2027 | | |
1975 | 2028 | | |
| |||
0 commit comments