portals: Only give blanket access to session-*.scope systemd cgroup

This way we won't give false positives if the user systemd session is
not running.
This commit is contained in:
Alexander Larsson committed 2015-11-26 17:37:46 +01:00
1 parent f5cadc018b
commit 47c705db03
1 file changed
+2 -1
+2 -1
View File
@@ -966,7 +966,8 @@ got_credentials_cb (GObject *source_object,
info->app_id = g_strdup (name);
}
}
else
else if (g_str_has_prefix (scope, "session-") &&
g_str_has_suffix (scope, ".scope"))
info->app_id = g_strdup ("");
}
}