Skip to content

Commit 05514d2

Browse files
committed
Releasing 1.25.1
1 parent 7d6eb99 commit 05514d2

File tree

6 files changed

+50
-40
lines changed

6 files changed

+50
-40
lines changed

NEWS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Overview of changes in lightdm 1.25.1
2+
3+
* Fixes for VNC and XDMCP connections
4+
* Use AccountsService extension system for extended greeter information
5+
* Modernise code style
6+
17
Overview of changes in lightdm 1.25.0
28

39
* Support moc being called moc-qt5 (e.g. Fedora)

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dnl Process this file with autoconf to produce a configure script.
22

3-
AC_INIT(lightdm, 1.25.0)
3+
AC_INIT(lightdm, 1.25.1)
44
AC_CONFIG_MACRO_DIR(m4)
55
AC_CONFIG_HEADER(config.h)
66
AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz foreign])

debian/changelog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
lightdm (1.25.1-0ubuntu1) bionic; urgency=medium
2+
3+
* New upstream release:
4+
- Fixes for VNC and XDMCP connections
5+
* Use AccountsService extension system for extended greeter information
6+
- Modernise code style
7+
8+
-- Robert Ancell <[email protected]> Thu, 18 Jan 2018 09:43:40 +1300
9+
110
lightdm (1.25.0-0ubuntu1) bionic; urgency=medium
211

312
* New upstream release:

debian/patches/04_language_handling.patch

Lines changed: 31 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,49 +6,43 @@ Index: lightdm/liblightdm-gobject/language.c
66
===================================================================
77
--- lightdm.orig/liblightdm-gobject/language.c
88
+++ lightdm/liblightdm-gobject/language.c
9-
@@ -60,7 +60,7 @@ static GList *languages = NULL;
10-
static void
11-
update_languages (void)
12-
{
13-
- gchar *command = "locale -a";
14-
+ gchar *command = "/usr/share/language-tools/language-options";
9+
@@ -63,7 +63,7 @@ update_languages (void)
10+
if (have_languages)
11+
return;
12+
13+
- const gchar *command = "locale -a";
14+
+ const gchar *command = "/usr/share/language-tools/language-options";
1515
g_autofree gchar *stdout_text = NULL;
1616
g_autofree gchar *stderr_text = NULL;
1717
gint exit_status;
18-
@@ -168,15 +168,39 @@ lightdm_get_language (void)
18+
@@ -150,14 +150,30 @@ get_locale_name (const gchar *code)
19+
LightDMLanguage *
20+
lightdm_get_language (void)
1921
{
20-
const gchar *lang;
21-
GList *link;
22+
- const gchar *lang = g_getenv ("LANG");
23+
- if (!lang)
24+
- return NULL;
2225
+ static const gchar *short_lang = NULL;
23-
+
24-
+ if (short_lang)
25-
+ goto match;
26-
27-
lang = g_getenv ("LANG");
28-
if (!lang)
29-
return NULL;
30-
31-
+ /* Convert to a short form language code */
32-
+ gchar *command = g_strconcat ("/usr/share/language-tools/language-validate ", lang, NULL);
33-
+ gchar *out;
34-
+ GError *error = NULL;
35-
+ if (g_spawn_command_line_sync (command, &out, NULL, NULL, &error))
26+
+ if (!short_lang)
3627
+ {
37-
+ short_lang = g_strdup (g_strchomp (out));
38-
+ g_free (out);
39-
+ g_free (command);
40-
+ }
41-
+ else
42-
+ {
43-
+ g_warning ("Failed to run '%s': %s", command, error->message);
44-
+ g_error_free (error);
45-
+ g_free (command);
46-
+ return NULL;
47-
+ }
48-
+
49-
+match:
28+
+ const gchar *lang = g_getenv ("LANG");
29+
+ if (!lang)
30+
+ return NULL;
5031
+
51-
for (link = lightdm_get_languages (); link; link = link->next)
32+
+ /* Convert to a short form language code */
33+
+ g_autofree gchar *command = g_strconcat ("/usr/share/language-tools/language-validate ", lang, NULL);
34+
+ g_autofree gchar *out = NULL;
35+
+ g_autoptr(GError) error = NULL;
36+
+ if (g_spawn_command_line_sync (command, &out, NULL, NULL, &error))
37+
+ short_lang = g_strdup (g_strchomp (out));
38+
+ else
39+
+ {
40+
+ g_warning ("Failed to run '%s': %s", command, error->message);
41+
+ return NULL;
42+
+ }
43+
+ }
44+
45+
for (GList *link = lightdm_get_languages (); link; link = link->next)
5246
{
5347
LightDMLanguage *language = link->data;
5448
- if (lightdm_language_matches (language, lang))
@@ -75,7 +69,7 @@ Index: lightdm/src/seat.c
7569
===================================================================
7670
--- lightdm.orig/src/seat.c
7771
+++ lightdm/src/seat.c
78-
@@ -1008,7 +1008,7 @@ configure_session (Session *session, Ses
72+
@@ -944,7 +944,7 @@ configure_session (Session *session, Ses
7973
}
8074
if (language && language[0] != '\0')
8175
{

debian/patches/05_translate_debian_files.patch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ Author: Gunnar Hjalmarsson <[email protected]>
55

66
--- lightdm.orig/po/POTFILES.in 2014-09-30 05:00:39.000000000 +0200
77
+++ lightdm/po/POTFILES.in 2014-10-19 18:08:09.576134427 +0200
8-
@@ -1,5 +1,8 @@
8+
@@ -1,6 +1,9 @@
99
# List of source files containing translatable strings.
1010
# Please keep this file sorted alphabetically.
1111
[encoding: UTF-8]
1212
+debian/config-error-dialog.sh
1313
+debian/guest-account.sh
1414
+debian/guest-session-auto.sh
15+
data/org.freedesktop.DisplayManager.AccountsService.policy.in
1516
src/lightdm.c
1617
src/dm-tool.c

debian/patches/autologin-session-workaround.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Index: lightdm/src/seat.c
66
===================================================================
77
--- lightdm.orig/src/seat.c
88
+++ lightdm/src/seat.c
9-
@@ -1039,7 +1039,12 @@ create_user_session (Seat *seat, const g
9+
@@ -968,7 +968,12 @@ create_user_session (Seat *seat, const g
1010
if (autostart)
1111
{
1212
const gchar *autologin_session_name = seat_get_string_property (seat, "autologin-session");

0 commit comments

Comments
 (0)