~roguescholar/flatpak/+git/trunk:wip/hadess/fix-no-utf8-support

Last commit made on 2021-02-23
Get this branch:
git clone -b wip/hadess/fix-no-utf8-support https://git.launchpad.net/~roguescholar/flatpak/+git/trunk

Branch merges

Branch information

Name:
wip/hadess/fix-no-utf8-support
Repository:
lp:~roguescholar/flatpak/+git/trunk

Recent commits

c063050... by Bastien Nocera

common: Fix Spawn portal method not working with UTF-8 files

When the portal's Spawn method is used with the environment cleared,
it's very likely that the "flatpak run" that ends up being run will be
in an environment without UTF-8 support.

If one of the files or directories we try to expose to the sub-sandbox
contains UTF-8/non-ASCII characters, then "flatpak run" would fail with:
error: Invalid byte sequence in conversion input

This is caused by GOption trying to parse the --filesystem option for
flatpak, as, when using the G_OPTION_ARG_CALLBACK argument type, GOption
will split the option name from its value, and try to convert the value
to UTF-8. Which will fail because there's no UTF-8.

It won't however do that if we tell the option parser that the value is
a filename using G_OPTION_FLAG_FILENAME, so set it.

c7bb35d... by Phaedrus Leeds <email address hidden>

Merge pull request #4134 from flatpak/trivial-configure-output

trivial: Fix formatting of configure output

e2a2e38... by Phaedrus Leeds <email address hidden>

Merge pull request #4130 from RyuzakiKK/xauthlocalhostname

run: Propagate X11 cookies with an address equals to XAUTHLOCALHOSTNAME

af2b8ca... by Phaedrus Leeds <email address hidden>

Merge pull request #4133 from RyuzakiKK/unused_vars

Remove unused variables

66c4ef8... by Phaedrus Leeds <email address hidden>

trivial: Fix formatting of configure output

0d27b27... by Ludovico de Nittis <email address hidden>

run: Remove unused GAsyncResult variable

Signed-off-by: Ludovico de Nittis <email address hidden>

8d9be91... by Ludovico de Nittis <email address hidden>

dir: Remove unused AutoPolkitDetails variable

Signed-off-by: Ludovico de Nittis <email address hidden>

d192d1b... by Phaedrus Leeds <email address hidden>

Merge pull request #4119 from kalev/G_BEGIN_DECLS-G_END_DECLS

Add G_BEGIN_DECLS/G_END_DECLS to public headers

fd6a3b7... by Ludovico de Nittis <email address hidden>

run: Propagate X11 cookies with an address equals to XAUTHLOCALHOSTNAME

OpenSUSE inherits the hostname value from DHCP without updating its X11
authentication cookie, and it keeps the initial value in
`XAUTHLOCALHOSTNAME`.
To avoid breaking the X11 applications, OpenSUSE patches libxcb so that
it also considers the value in `XAUTHLOCALHOSTNAME` as another possible
hostname.

https://bugzilla.opensuse.org/show_bug.cgi?id=262309

To cope with that behavior we need to check `XAUTHLOCALHOSTNAME` too
and, if we have a cookie with that address, propagate it inside the
container adjusting its address to the canonical hostname
`unames.nodename`.

Fixes: #4043

Signed-off-by: Ludovico de Nittis <email address hidden>

4262847... by Kalev Lember <email address hidden>

Add G_BEGIN_DECLS/G_END_DECLS to public headers

This ensures that we correctly specify C linkage when including flatpak
headers from C++ code.

This should fix fallout from glib's change to include C++ code in its
headers, see https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1935
for discussion.

Fixes https://github.com/flatpak/flatpak/issues/4117