Commit Graph

6 Commits

Author SHA1 Message Date
Simon McVittie
9eb824f863 Add a Meson build system
Resolves: https://github.com/flatpak/flatpak/issues/2241
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-10-24 16:12:14 +01:00
Simon McVittie
bb307a5f26 triggers: Use command -v in preference to which
which(1) is not standardized by POSIX, and has different implementations
and behaviour on different distributions. The behaviour and exit status
of command -v is standardized by POSIX, and in particular, checking its
exit status is an appropriate way to ask: if I called this command,
would it be found?

Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-01-25 10:07:03 +01:00
Simon McVittie
6fdc9071d0 triggers: Quote more defensively
In the unlikely event that one of these paths contains spaces or other
special characters, we don't want to field splitting to take place.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-01-25 10:07:03 +01:00
Alexander Larsson
5dfc59ee02 Pass location of exports to triggers as arg1
This changes nothing but is a preparation for later changes
2016-02-09 14:50:35 +01:00
Alexander Larsson
8ffacee14c Change /self to /app
This changes the application prefix to /app, which has the
advantage of being the same length as /usr. This may help
making some packages relocatable.

We make /self a symlink to /app for now, to keep existing images
work, but at some point we will probably remove this.
2015-05-21 18:54:06 +02:00
Alexander Larsson
daf41bab9c Add triggers for exports
This runs the triggers in a read-only environment to update things
like desktop file databases, icon caches and mimeinfo databases.
2015-01-15 21:45:55 +01:00