diff options
| author | Dan Nicholson <dbn@endlessos.org> | 2023-02-13 10:21:39 -0700 |
|---|---|---|
| committer | Simon McVittie <smcv@collabora.com> | 2023-02-13 18:24:54 +0000 |
| commit | cc122e297235d68301f2c4c466bed997db05937c (patch) | |
| tree | 1f38fdee7e735c1b5dde7f04359da0e74f98096f /common | |
| parent | be2de97e862e5ca223da40a895e54e7bf24dbfb9 (diff) | |
| download | flatpak-cc122e297235d68301f2c4c466bed997db05937c.tar.gz | |
flatpak-run: Unset GDK_BACKEND
If the `GDK_BACKEND` environment variable is present and it's value does
not match the Wayland and X11 socket configuration, then a GTK app will
fail to run since it will only consider the display backend from the
environment variable.
This should probably be extended to cover other display environment
variables such as `QT_QPA_PLATFORM` for Qt and `SDL_VIDEODRIVER` for
SDL. However, I've only tested this with GTK applications.
Diffstat (limited to 'common')
| -rw-r--r-- | common/flatpak-run.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/flatpak-run.c b/common/flatpak-run.c index 3c85f922..9a5195ab 100644 --- a/common/flatpak-run.c +++ b/common/flatpak-run.c @@ -1912,6 +1912,7 @@ static const ExportData default_exports[] = { {"KRB5CCNAME", NULL}, {"XKB_CONFIG_ROOT", NULL}, {"GIO_EXTRA_MODULES", NULL}, + {"GDK_BACKEND", NULL}, }; static const ExportData no_ld_so_cache_exports[] = { |
