mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-25 17:09:36 -04:00
Read system remotes from /etc/xdg-app/remotes.d/*.conf
This commit is contained in:
1 parent
3383eefc82
commit
351c2d5bd2
2 files changed
+7
-1
No files matched your search
@@ -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)\" \
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user