extra apps and locales

Robert McQueen rob at endlessm.com
Thu Feb 16 10:31:20 UTC 2017


On 16/02/17 10:16, 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

I was looking into the binary patching that would be needed to achieve 
this, then I realised two things:
  - various other prefix-based functionality such as plugins, expected 
in /usr/lib/... are affected as well as just gettext
  - it's not particularly trivial to tell apart the paths in the 
binaries which are meant to be /usr because they come from the runtime, 
and which are paths that come from the app so need patching to /xtr

So that leads to my next (this might be terrible) idea which is to add 
support for a read-only overlay mount to bubblewrap, so in the case your 
extra app has been "uprooted" from /usr you can add an invocation to 
this flatpak to layer /app/extra on top of /usr and nobody is any the 
wiser...

Cheers,
Rob

........................................................................

Robert McQueen  |  +1.415.413.4159  |  Endless <http://endlessm.com/>



More information about the xdg-app mailing list