sd-login: let's not needlessly yell at users

While GNOME/KDE are generally capitalized, systemd tools generally are
not, hence let's not start doing so in the XDG_CURRENT_SESSION
environment variable.
This commit is contained in:
Lennart Poettering 2014-10-28 12:31:11 +01:00
parent ebc5788e88
commit 090771492f
3 changed files with 3 additions and 3 deletions

2
NEWS
View File

@ -51,7 +51,7 @@ CHANGES WITH 217:
* A user console daemon systemd-consoled has been
added. Currently, it is a preview, and will so far open a
single terminal on each session of the user marked as
Desktop=SYSTEMD-CONSOLE.
Desktop=systemd-console.
* Route metrics can be specified for DHCP routes added by
systemd-networkd.

View File

@ -132,7 +132,7 @@ static int manager_sysview_session_filter(Manager *m, sysview_event *event) {
if (r < 0)
return 0;
return streq(desktop, "SYSTEMD-CONSOLE");
return streq(desktop, "systemd-console");
}
static int manager_sysview_session_add(Manager *m, sysview_event *event) {

View File

@ -147,7 +147,7 @@ int sd_session_get_type(const char *session, char **type);
/* Determine the class of this session, i.e. one of "user", "greeter" or "lock-screen". */
int sd_session_get_class(const char *session, char **clazz);
/* Determine the desktop brand of this session, i.e. something like "GNOME", "KDE" or "SYSTEMD-CONSOLE". */
/* Determine the desktop brand of this session, i.e. something like "GNOME", "KDE" or "systemd-console". */
int sd_session_get_desktop(const char *session, char **desktop);
/* Determine the X11 display of this session. */