flatpak-builder/common
Alexander Larsson 5c075525a8 Allow application ids containing "-"
For a long time we have been disallowing "-" in application names,
which is different than what dbus allows for bus names. Also "-" used
to be not allowed by GApplication in glib. This is in part because
dbus object paths do *not* allow dashes, so you can't legally map
from e.g. a valid name like "org.foo-bar.gazonk" to a valid path
like "/org/foo-bar/gazonk".

This is a problem because many existing apps already use "-" in the
name, either as the last part (org.gnome.font-viewer) or because
the dns name it refers to has a dash.

This was recently discussed in the dbus community, and the result
is to recommend that "-" in the bus names be converted to "_" in object
paths.

This change makes it also allowed to have "-" in a flatpak app id.

For flatpak specifically we were relying on "-" not being allowed to
handle the case of exporting "org.foo.App-symbolic.png". If "-" is
allowed this name can conflict between apps called "org.foo.App-symbolic"
and "org.foo.App".

To handle this we add two special cases:
 * App ids can't end with "-symbolic".
 * Apps are allowed to export files with $appid-symbolic as prefix.
2016-09-16 16:44:05 +02:00
..
gvdb Rename lib/ to common/ in preparation for public xdg-app library 2015-11-26 22:05:38 +01:00
Makefile.am.inc Create directories before attempting to generate code into them 2016-08-26 12:36:35 +03:00
flatpak-chain-input-stream.c Fix license headers 2016-07-29 14:27:49 -04:00
flatpak-chain-input-stream.h Fix license headers 2016-07-29 14:27:49 -04:00
flatpak-common-types.h Fix license headers 2016-07-29 14:27:49 -04:00
flatpak-db.c Rename everything but the on-disk location to flatpak 2016-05-09 11:11:55 +02:00
flatpak-db.h Rename everything but the on-disk location to flatpak 2016-05-09 11:11:55 +02:00
flatpak-dir.c Make flatpak_is_valid_branch set a GError 2016-09-13 13:28:42 -04:00
flatpak-dir.h origin remotes: Store main ref 2016-09-12 11:58:22 +02:00
flatpak-portal-error.c Change portal error names to not contain Flatpak 2016-05-12 22:03:09 +02:00
flatpak-portal-error.h Rename everything but the on-disk location to flatpak 2016-05-09 11:11:55 +02:00
flatpak-run.c run: Print errno error code consistently 2016-09-15 01:23:05 +08:00
flatpak-run.h run: Run dbus proxy under bubblewrap 2016-09-08 11:21:00 +02:00
flatpak-utils.c Allow application ids containing "-" 2016-09-16 16:44:05 +02:00
flatpak-utils.h Make flatpak_is_valid_branch set a GError 2016-09-13 13:28:42 -04:00