Skip to content

/ dir:/run/user/1000/gvfs type:fuse.gvfsd-fuse - invalid #6229

Answered by glitsj16
rieje asked this question in Q&A
Discussion options

You must be logged in to vote

Sounds like an ordering /racyness issue. Have you tried starting your custom units after gvfs-related user services?
Try adding something like After=gvfs-daemon.service gvfs-metadata.service gvfs-udisks2-volume-monitor.service. And check if there's other gvfs user service units on your system besides those.

Alternatively you could use wrapper scripts for those apps and implement starting after gvfs there:

$ cat ~/bin/udiskie
#!/bin/sh
#
## wrapper for udiskie
#+ sandbox support via firejail

### vars
_app="udiskie"
_bin="/usr/bin/${_app}"

### logic
# start after gvfs (auto-mounting removable devices)
until pgrep gvfs > /dev/null; do
    sleep 1
done

# run sandboxed
exec firejail ${_bin} "

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rieje
Comment options

Answer selected by rieje
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants