[gnome-builder] rofiles-fuse: wrap host rofiles-fuse from flatpak



commit 799ac5c8ba203ddae4a9a2e49e8345411fb3456b
Author: Christian Hergert <chergert redhat com>
Date:   Wed Feb 27 13:08:31 2019 -0800

    rofiles-fuse: wrap host rofiles-fuse from flatpak
    
    When we use our fusermount wrapper, we also want to wrap
    rofiles-fuse so that it runs on the host. Also, flatpak-builder
    is not smart enough to check for that on the host first anyway.

 src/meson.build  | 5 +++++
 src/rofiles-fuse | 4 ++++
 2 files changed, 9 insertions(+)
---
diff --git a/src/meson.build b/src/meson.build
index 3d4b5bfcb..0e7044eb4 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -60,6 +60,11 @@ if get_option('fusermount_wrapper')
         dependencies: [libglib_dep],
   )
 
+  install_data(['rofiles-fuse'],
+         install_dir: get_option('bindir'),
+        install_mode: 'rwxr-xr-x',
+  )
+
 endif
 
 gnome_builder = executable('gnome-builder', 'main.c', 'bug-buddy.c',
diff --git a/src/rofiles-fuse b/src/rofiles-fuse
new file mode 100644
index 000000000..10c68b4fd
--- /dev/null
+++ b/src/rofiles-fuse
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+flatpak-spawn --host rofiles-fuse "$@"
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]