fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1diff --git a/daemon/gdm-x-session.c b/daemon/gdm-x-session.c
2index 88fe96f..b1b140a 100644
3--- a/daemon/gdm-x-session.c
4+++ b/daemon/gdm-x-session.c
5@@ -664,18 +664,34 @@ spawn_session (State *state,
6 state->session_command,
7 NULL);
8 } else {
9+ char const *session_wrapper;
10+ char *eff_session_command;
11 int ret;
12 char **argv;
13
14- ret = g_shell_parse_argv (state->session_command,
15+ session_wrapper = g_getenv("GDM_X_SESSION_WRAPPER");
16+ if (session_wrapper != NULL) {
17+ char *quoted_wrapper = g_shell_quote(session_wrapper);
18+ eff_session_command = g_strjoin(" ", quoted_wrapper, state->session_command, NULL);
19+ g_free(quoted_wrapper);
20+ } else {
21+ eff_session_command = state->session_command;
22+ }
23+
24+ ret = g_shell_parse_argv (eff_session_command,
25 NULL,
26 &argv,
27 &error);
28
29+ if (session_wrapper != NULL) {
30+ g_free(eff_session_command);
31+ }
32+
33 if (!ret) {
34 g_debug ("could not parse session arguments: %s", error->message);
35 goto out;
36 }
37+
38 subprocess = g_subprocess_launcher_spawnv (launcher,
39 (const char * const *) argv,
40 &error);