Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
privacy_consent.h File Reference
#include <glib.h>
+ Include dependency graph for privacy_consent.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void dt_privacy_ask_consent (const gboolean have_gui)
 

Function Documentation

◆ dt_privacy_ask_consent()

void dt_privacy_ask_consent ( const gboolean  have_gui)

Show, once, the combined privacy consent dialog.

On first launch (when no decision has been recorded yet) this presents a single dialog with one checkbox per opt-in data flow that was built in:

  • crash reporting (Sentry), writing sentry/enabled,
  • usage analytics (PostHog), writing telemetry/enabled. It links to the user-facing "Data privacy" documentation page so users can read exactly what is collected before deciding, then records the answer so it is never asked again (sentinel privacy/consent_asked).

Must be called BEFORE dt_sentry_init()/dt_telemetry_init() so the per-feature enabled flags are set when those modules read them. No dialog is shown when a decision already exists, when there is no GUI, or when neither crash reporting nor analytics was compiled in.

Parameters
have_guiwhether a GUI is up and a modal dialog may be shown.

Definition at line 110 of file privacy_consent.c.

Referenced by dt_init().