File: main.c

package info (click to toggle)
gnome-settings-daemon 48.1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 16,160 kB
  • sloc: ansic: 33,525; python: 1,340; xml: 603; sh: 101; makefile: 32; perl: 19
file content (21 lines) | stat: -rw-r--r-- 565 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <gdk/gdk.h>

#define GDK_BACKEND "x11"
#include "gsd-main-helper.h"
#include "gsd-xsettings-manager.h"

int
main (int argc, char **argv)
{
        const gchar *setup_display = getenv ("GNOME_SETUP_DISPLAY");
        if (setup_display && *setup_display != '\0')
                g_setenv ("DISPLAY", setup_display, TRUE);

        gdk_set_allowed_backends (GDK_BACKEND);

        /* GDK would fail to initialize with e.g. GDK_BACKEND=wayland */
        g_unsetenv ("GDK_BACKEND");

        return gsd_main_helper (GSD_TYPE_XSETTINGS_MANAGER, argc, argv);
}