Read system remotes from /etc/xdg-app/remotes.d/*.conf

tingping/wmclass
Alexander Larsson 2016-04-21 18:47:11 +02:00
parent 3383eefc82
commit 351c2d5bd2
2 changed files with 7 additions and 1 deletions

View File

@ -28,6 +28,7 @@ XDG_APP_BINDIR=$(bindir)
AM_CPPFLAGS = \
-DXDG_APP_BINDIR=\"$(XDG_APP_BINDIR)\" \
-DXDG_APP_SYSTEMDIR=\"$(localstatedir)/lib/xdg-app\"\
-DXDG_APP_CONFIGDIR=\"$(sysconfdir)/xdg-app\"\
-DXDG_APP_BASEDIR=\"$(pkgdatadir)\" \
-DXDG_APP_TRIGGERDIR=\"$(pkgdatadir)/triggers\" \
-DSYSTEM_FONTS_DIR=\"$(SYSTEM_FONTS_DIR)\" \

View File

@ -625,7 +625,12 @@ xdg_app_dir_ensure_repo (XdgAppDir *self,
goto out;
repodir = g_file_get_child (self->basedir, "repo");
repo = ostree_repo_new (repodir);
if (self->user)
repo = ostree_repo_new (repodir);
else
repo = g_object_new (OSTREE_TYPE_REPO, "path", repodir,
"remotes-config-dir", XDG_APP_CONFIGDIR "/remotes.d",
NULL);
if (!g_file_query_exists (repodir, cancellable))
{