diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-05-09 12:21:28 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-05-09 12:21:28 +0200 |
commit | 5e9b247d260ff4e2b9a9620053e61e8a0161cdee (patch) | |
tree | 11a05b05d1c7d6d2db8f58519630e3de8e22b6fc /lib | |
parent | 8abbc0186efe977cec2a3214e7aa3703e9f1169f (diff) | |
download | xdg-app-5e9b247d260ff4e2b9a9620053e61e8a0161cdee.tar.gz |
Migrate ~/.local/share/xdg-app to ~/.local/share/flatpak
Diffstat (limited to 'lib')
-rw-r--r-- | lib/flatpak-installation.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/flatpak-installation.c b/lib/flatpak-installation.c index 40ba33c..0770f64 100644 --- a/lib/flatpak-installation.c +++ b/lib/flatpak-installation.c @@ -43,7 +43,7 @@ * * An FlatpakInstallation object provides information about an installation * location for flatpak applications. Typical installation locations are either - * system-wide (in /var/lib/xdg-app) or per-user (in ~/.local/share/xdg-app). + * system-wide (in /var/lib/flatpak) or per-user (in ~/.local/share/flatpak). * * FlatpakInstallation can list configured remotes as well as installed application * and runtime references (in short: refs). It can also run, install, update and @@ -184,6 +184,8 @@ FlatpakInstallation * flatpak_installation_new_user (GCancellable *cancellable, GError **error) { + flatpak_migrate_from_xdg_app (); + return flatpak_installation_new_for_dir (flatpak_dir_get_user (), cancellable, error); } @@ -203,6 +205,8 @@ flatpak_installation_new_for_path (GFile *path, gboolean user, GCancellable *cancellable, GError **error) { + flatpak_migrate_from_xdg_app (); + return flatpak_installation_new_for_dir (flatpak_dir_new (path, user), cancellable, error); } |