summaryrefslogtreecommitdiff
path: root/daemon/admin.mount.in
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2016-06-28 06:59:52 -0700
committerCosimo Cecchi <cosimo@endlessm.com>2016-07-13 13:35:14 -0700
commitf0665df1842f26443c68956d89379c1576b4d25b (patch)
treed3a784aa644aa9f54d09b1765fa29c10c839a110 /daemon/admin.mount.in
parentda423fd9a30b48078708cae5cff8bdbe4a768e85 (diff)
downloadgvfs-f0665df1842f26443c68956d89379c1576b4d25b.tar.gz
admin: fix syntax for admin daemon invocation
Diffstat (limited to 'daemon/admin.mount.in')
-rw-r--r--daemon/admin.mount.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon/admin.mount.in b/daemon/admin.mount.in
index 0996a9e5..cbdb164e 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