> Is there a way to stop gvfsd-gphoto2 from respawning?

It's started by the volume manager which is started by system-wide
defaults for Gnome/Ubuntu systemd user session.

Tell systemd that you want that service to be disabled for your (current) user 
account:
  systemctl --user mask gvfs-gphoto2-volume-monitor

And stop it:
  systemctl --user stop gvfs-gphoto2-volume-monitor

Then you can kill the thing started by it, which does that bloody annoying 
mount preventing everything else from using the Camera (e.g. in my case, qt / 
libgphoto2 based Digikam, which I prefer for managing my photos instead of 
Gnome SW):
  killall gvfsd-gphoto2

IMHO this is upstream "gfsvd-gphoto2" bug.  It should mount i.e. lock
the camera USB device only when user starts some application that
actually wants to use it (or user has enabled a setting asking it to
index photos automatically from random connected camera-like USB devices
on background).

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gvfs in Ubuntu.
https://bugs.launchpad.net/bugs/388712

Title:
  gvfsd-gphoto2 locks camera

Status in gvfs package in Ubuntu:
  Confirmed

Bug description:
  After plugging in a camera, gvfsd-gphoto2 launches and locks the camera.
  This prevents gphoto2 from doing its job, since it does not acces the camera 
via GVFS/GIO:

  Steps to reproduce:

  1) Plug in the camera.
  2) 'ps x | grep gphoto' shows gvfsd-gphoto2 and/or 
gvfs-gphoto2-volume-monitor running
  3) 'gphoto2 --auto-detect --capture-image-and-download' fails with "Error 
(-60: 'Could not lock the device'"
  4) 'killall gvfsd-gphoto2 gvfs-gphoto2-volume-monitor'
  5) rerun (3), and have your picture taken and downloaded.

  I don't know if the daemon is only locking the camera as soon as some
  process starts accessing it. (well, maybe nautilus does acces it). It
  would be great, if it could release the lock as soon as possible, or
  (don't know about the locking) don't lock for read-only access.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/388712/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to