mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 10:42:11 +01:00
portal: Rename function to not be flatpak specific
It will also read snap information
This commit is contained in:
parent
78d0ac4237
commit
4ba188c906
@ -28,7 +28,7 @@ static gboolean network_available;
|
||||
static gboolean dconf_access;
|
||||
|
||||
static void
|
||||
read_flatpak_info (void)
|
||||
sandbox_info_read (void)
|
||||
{
|
||||
static gsize flatpak_info_read = 0;
|
||||
GSandboxType sandbox_type;
|
||||
@ -92,20 +92,20 @@ read_flatpak_info (void)
|
||||
gboolean
|
||||
glib_should_use_portal (void)
|
||||
{
|
||||
read_flatpak_info ();
|
||||
sandbox_info_read ();
|
||||
return use_portal;
|
||||
}
|
||||
|
||||
gboolean
|
||||
glib_network_available_in_sandbox (void)
|
||||
{
|
||||
read_flatpak_info ();
|
||||
sandbox_info_read ();
|
||||
return network_available;
|
||||
}
|
||||
|
||||
gboolean
|
||||
glib_has_dconf_access_in_sandbox (void)
|
||||
{
|
||||
read_flatpak_info ();
|
||||
sandbox_info_read ();
|
||||
return dconf_access;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user