The flatpak notification portal reads permissions out of the permission store, so forward the notification permissions there in order to prevent sandboxed applications from sending notifications. The difference is a bit cosmetic, since the shell would not show the notification anyway in this case, but it is nicer to just cut off the calls and not let them through the portal in the first place. https://bugzilla.gnome.org/show_bug.cgi?id=778851
35 lines
1.2 KiB
C
35 lines
1.2 KiB
C
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
/*
|
|
* Copyright (C) 2012 Giovanni Campagna <scampa.giovanni@gmail.com>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General
|
|
* Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
#ifndef _CC_EDIT_DIALOG_H_
|
|
#define _CC_EDIT_DIALOG_H_
|
|
|
|
#include "cc-notifications-panel.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
void cc_build_edit_dialog (CcNotificationsPanel *panel,
|
|
GAppInfo *app,
|
|
GSettings *settings,
|
|
GSettings *master_settings,
|
|
GDBusProxy *perm_store);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* _CC_EDIT_DIALOG_H_ */
|