extra apps and locales
Alexander Larsson
alexl at redhat.com
Thu Feb 16 15:24:29 UTC 2017
On Thu, 2017-02-16 at 10:16 +0000, Robert McQueen wrote:
>
> >
> > 2) Patch the binary. Easy to do if your locale path will be shorter
> > than Debian's. Pretty sure that could be a 'sed' script.
>
> /app/extra is longer than /usr - maybe we need /xtr or something? :P
Yes, but you're in control of /app, and could easily add a /app/locale
-> /app/extra/locale symlink as needed.
In fact, /app was explicitly chosen to be the same length as /usr for
this particular reason (it used to be /self).
> > In some other cases, we've patched some libraries like GStreamer
> > > in
> > > the
> > > Flatpak runtime, to eg have a different search path for plugins,
> > > but
> > > patching glibc (in both the fd.o runtime & also in the Endless OS
> > > runtime, where a large part is shared with the system's ostree)
> > > seems
> > > like a very large sledgehammer to crack this nut.
> >
> > Pretty sure GStreamer has envvar that will actually affect its
> > search
> > path, it's even set in jhbuild:
> > $ export | grep GST
> > declare -x GST_PLUGIN_PATH_1_0="/home/hadess/Projects/gnome-
> > install/lib/gstreamer-1.0"
> > declare -x GST_REGISTRY="/home/hadess/Projects/gnome-
> > install/_jhbuild/gstreamer-0.10.registry"
> > declare -x GST_REGISTRY_1_0="/home/hadess/Projects/gnome-
> > install/_jhbuild/gstreamer-1.0.registry"
>
> Oh you're right - I'm sure I remember digging out some kind of
> Endless
> patch to GStreamer for Alex to include during the hackfest last
> year,
> some kind of ostree friendliness - to make GStreamer codec
> extensions
> possible - but I can't remember what it was exactly and I can't find
> it
> now. Maybe it's gone upstream.
The fd.o and gnome runtimes set GST_PLUGIN_SYSTEM_PATH in the
environment to:
/app/lib/gstreamer-1.0:/usr/lib/extensions/gstreamer-1.0:/usr/lib/gstreamer-1.0"
Which i believe should fix this.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl at redhat.com alexander.larsson at gmail.com
He's an unconventional dishevelled inventor looking for 'the Big One.'
She's a radical hip-hop safe cracker married to the Mob. They fight
crime!
More information about the xdg-app
mailing list