Skip to content

Commit 59acfe1

Browse files
committed
main.c: Reset the activation environment at the end of the
session. Also, skip blacklisted env variables for the user environment. upstream refs: https://gitlab.gnome.org/GNOME/gnome-session/-/commit/bb4842dd785dc85bef4c382c391d65700d0b3f64 https://gitlab.gnome.org/GNOME/gnome-session/-/commit/d44888fb304e9d957805bf052bf879b0f50568be
1 parent 9961f98 commit 59acfe1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cinnamon-session/csm-util.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,8 @@ csm_util_export_user_environment (GError **error)
673673
g_variant_builder_open (&builder, G_VARIANT_TYPE ("as"));
674674
for (i = 0; variable_unsetlist[i] != NULL; i++)
675675
g_variant_builder_add (&builder, "s", variable_unsetlist[i]);
676+
for (i = 0; variable_blacklist[i] != NULL; i++)
677+
g_variant_builder_add (&builder, "s", variable_blacklist[i]);
676678
g_variant_builder_close (&builder);
677679

678680
g_variant_builder_open (&builder, G_VARIANT_TYPE ("as"));

cinnamon-session/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ main (int argc, char **argv)
291291
g_object_unref (manager);
292292
}
293293

294+
csm_util_export_activation_environment (NULL);
295+
294296
g_bus_unown_name (name_owner_id);
295297

296298
mdm_log_shutdown ();

0 commit comments

Comments
 (0)