[nautilus] application: Check profile, not app ID
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] application: Check profile, not app ID
- Date: Sat, 14 Jul 2018 10:37:40 +0000 (UTC)
commit 6d433d35cce2ead00a3db81d24f699e3ad9c1d56
Author: Ernestas Kulik <ernestask gnome org>
Date: Sat Jul 14 13:35:01 2018 +0300
application: Check profile, not app ID
It’s a bit more reliable, since now non-empty profile strings mean
non-default profiles.
src/nautilus-application.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 321a8d74f..c74d8b811 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -245,7 +245,6 @@ nautilus_application_create_window (NautilusApplication *self,
g_autoptr (GVariant) default_size = NULL;
gint default_width = 0;
gint default_height = 0;
- const gchar *application_id;
g_return_val_if_fail (NAUTILUS_IS_APPLICATION (self), NULL);
nautilus_profile_start (NULL);
@@ -271,8 +270,7 @@ nautilus_application_create_window (NautilusApplication *self,
MAX (NAUTILUS_WINDOW_MIN_WIDTH, default_width),
MAX (NAUTILUS_WINDOW_MIN_HEIGHT, default_height));
- application_id = g_application_get_application_id (G_APPLICATION (self));
- if (g_strcmp0 (application_id, "Nautilus") != 0)
+ if (g_strcmp0 (PROFILE, "") != 0)
{
GtkStyleContext *style_context;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]