### Namespace

# Shell – 16

Shell

Version | 16
Authors | Unknown authors
License | GPL-2.0-or-later
Website | https://www.gnome.org
Source | https://gitlab.gnome.org/GNOME/gnome-shell/

#### Dependencies

GObject—2.0 | The base type system library
| Browse documentation
Gio—2.0 | GObject Interfaces and Objects, Networking, IPC, and I/O
| Browse documentation
Clutter—16 | An OpenGL based 'interactive canvas' library
| Browse documentation
Meta—16 | The mutter display server, window manager and compositor library
| Browse documentation

#### Additional documentation

- Classes Hierarchy

#### Classes

App | Object representing an application.
AppSystem |
AppUsage | Track application usage/state data.
BlurEffect | Blur effect for actors.
CameraMonitor |
Global |
GLSLEffect | An offscreen effect using GLSL.
InvertLightnessEffect | A colorization effect where lightness is inverted but color is not.
KeyringPrompt |
MountOperation |
NetworkAgent |
PerfLog | Event recorder for performance measurement.
PolkitAuthenticationAgent |
Screenshot | Grabs screenshots of areas and/or windows.
SecureTextBuffer |
SquareBin |
Stack | Pure “Z-axis” container class.
TrayIcon |
TrayManager |
WindowPreview |
WindowPreviewLayout |
WindowTracker | Associate windows with applications.
WM |
WorkspaceBackground |

#### Structs

MemoryInfo |

#### Enumerations

AppLaunchGpu |
AppState |
BlurMode | The mode of blurring of the effect.
NetworkAgentResponse |

#### Bitfields

ActionMode | Controls in which GNOME Shell states an action (like keybindings and gestures) should be handled.

#### Callbacks

LeisureFunction |
PerfReplayFunction |
PerfStatisticsCallback |

#### Functions

get_file_contents_utf8_sync | Synchronously load the contents of a file as a NUL terminated string, validating it as UTF-8. Embedded NUL characters count as invalid content.
time_change_source_new | Creates a `GSource` which is dispatched every time the system realtime clock changes relative to the monotonic clock.
util_check_cloexec_fds | Walk over all open file descriptors. Check them for the FD_CLOEXEC flag. If this flag is not set, log the offending file descriptor number.
util_create_pixbuf_from_data | Workaround for non-introspectability of gdk_pixbuf_from_data().
util_get_translated_folder_name | Attempts to translate the folder `name` using translations provided by .directory files.
util_get_uid | A wrapper around `getuid()` so that it can be used from JavaScript. This function will always succeed.
util_get_week_start | Gets the first week day for the current locale, expressed as a number in the range 0..6, representing week days from Sunday to Saturday.
util_has_x11_display_extension | If the corresponding X11 display provides the passed extension, return `TRUE`, otherwise `FALSE`. If there is no X11 display, `FALSE` is passed.
util_regex_escape | A wrapper around `g_regex_escape_string()` that takes its argument as \0-terminated string rather than a byte-array that confuses gjs.
util_sd_notify |
util_set_hidden_from_pick | If `hidden` is `TRUE`, hide `actor` from pick even with a mode of `CLUTTER_PICK_ALL`; if `hidden` is `FALSE`, unhide `actor`.
util_spawn_async | A wrapper around `g_spawn_async()` with async-signal-safe implementation of `GSpawnChildSetupFunc` to launch a child program asynchronously resetting the rlimit nofile on child setup.
util_spawn_async_with_fds | A wrapper around `g_spawn_async_with_fds()` with async-signal-safe implementation of `GSpawnChildSetupFunc` to launch a child program asynchronously resetting the rlimit nofile on child setup.
util_spawn_async_with_pipes | A wrapper around `g_spawn_async_with_pipes()` with async-signal-safe implementation of `GSpawnChildSetupFunc` to launch a child program asynchronously resetting the rlimit nofile on child setup.
util_spawn_async_with_pipes_and_fds | A wrapper around `g_spawn_async_with_pipes_and_fds()` with async-signal-safe implementation of `GSpawnChildSetupFunc` to launch a child program asynchronously resetting the rlimit nofile on child setup.
util_start_systemd_unit |
util_start_systemd_unit_finish |
util_stop_systemd_unit |
util_stop_systemd_unit_finish |
util_systemd_unit_exists |
util_systemd_unit_exists_finish |
util_touch_file_async |
util_touch_file_finish |
util_translate_time_string | Translate `str` according to the locale defined by LC_TIME; unlike dcgettext(), the translations is still taken from the LC_MESSAGES catalogue and not the LC_TIME one.
util_wifexited | Implements libc standard WIFEXITED, that cannot be used JS code.
write_string_to_stream | Write a string to a GOutputStream as UTF-8. This is a workaround for not having binary buffers in GJS.

#### Constants

KEYRING_SK_TAG |
KEYRING_SN_TAG |
KEYRING_UUID_TAG |