summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2015-06-02 13:33:57 +0200
committerAlexander Larsson <alexl@redhat.com>2015-06-02 13:33:57 +0200
commit82411658480875f55db83bdc3949d07d0970d3b6 (patch)
treea21f3847f3877f1d0c93c2f0d63c079e55e26ce2
parentdc5431fb98acceaaa4e9673fe2f163f604e55b74 (diff)
downloadxdg-app-82411658480875f55db83bdc3949d07d0970d3b6.tar.gz
helper: Don't fail if ~/.local/share/xdg-app does not exist
-rw-r--r--xdg-app-helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xdg-app-helper.c b/xdg-app-helper.c
index fa901dd..f949838 100644
--- a/xdg-app-helper.c
+++ b/xdg-app-helper.c
@@ -2122,7 +2122,7 @@ main (int argc,
xdg_app_dir = strconcat (home, "/.local/share/xdg-app");
- if (bind_mount (xdg_app_dir, get_relative_path (xdg_app_dir), BIND_READONLY))
+ if (bind_mount (xdg_app_dir, get_relative_path (xdg_app_dir), BIND_READONLY) && errno != ENOENT)
die_with_error ("Unable to remount xdg-app dir readonly\n");
free (xdg_app_dir);
}