[gvfs] admin: fix syntax for admin daemon invocation



commit f0665df1842f26443c68956d89379c1576b4d25b
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Jun 28 06:59:52 2016 -0700

    admin: fix syntax for admin daemon invocation

 daemon/admin.mount.in |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/daemon/admin.mount.in b/daemon/admin.mount.in
index 0996a9e..cbdb164 100644
--- a/daemon/admin.mount.in
+++ b/daemon/admin.mount.in
@@ -1,4 +1,5 @@
 [Mount]
 Type=admin
-Exec=/bin/sh -c 'pkexec @libexecdir@/gvfsd-admin --address "$@" $DBUS_SESSION_BUS_ADDRESS'
+# Add a dummy argument after pkexec, or '/bin/sh -c' will eat the first argument in '$@'
+Exec=/bin/sh -c 'pkexec @libexecdir@/gvfsd-admin "$@" --address $DBUS_SESSION_BUS_ADDRESS' gvfsd-admin
 AutoMount=true


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