Commit 21c51f9f authored by Ken VanDine's avatar Ken VanDine Committed by Ken VanDine

If SNAP_STORE_ONLY=1 we'll quit on window delete event

parent 59bb68cb
Pipeline #38093 passed with stage
in 6 minutes and 54 seconds
......@@ -839,6 +839,7 @@ main_window_closed_cb (GtkWidget *dialog, GdkEvent *event, gpointer user_data)
{
GsShell *shell = user_data;
GsShellPrivate *priv = gs_shell_get_instance_private (shell);
const gchar *snap_store_only;
/* hide any notifications */
g_application_withdraw_notification (g_application_get_default (),
......@@ -851,6 +852,12 @@ main_window_closed_cb (GtkWidget *dialog, GdkEvent *event, gpointer user_data)
gs_shell_clean_back_entry_stack (shell);
gtk_widget_hide (dialog);
/* Running as snap-store we want to always quit */
snap_store_only = g_getenv ("SNAP_STORE_ONLY");
if (snap_store_only != NULL)
g_application_quit (g_application_get_default ());
return TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment