makemkvcon gets automatically started via gvfs-udisks2-volume-monitor

The place to discuss linux version of MakeMKV
Post Reply
jemima
Posts: 60
Joined: Fri Oct 06, 2023 1:16 am

makemkvcon gets automatically started via gvfs-udisks2-volume-monitor

Post by jemima »

Hey there.

Since a while I'm seeing that some makemkvcon process(es) get started by merely inserting a disc without actually starting makemkv or doing anything else.

This is actually a bit annoying, as the process causes some ongoing disc activity and in particular it doesn't seem to stop (or I was never patient enough).
I cannot even kill this, I mean I can kill the makemkvcon process but it becomes a zombie and the disc activity continues until I unplug the drive.

It seems the offender which starts makemkvcon is gvfs-udisks2-volume-monitor. Looking at this it's linked against libbluray.so.2, so I presume it's libmmbd which somehow comes into play.

Any ideas how one prevents this?

Thanks,
Jemima.
jemima
Posts: 60
Joined: Fri Oct 06, 2023 1:16 am

Re: makemkvcon gets automatically started via gvfs-udisks2-volume-monitor

Post by jemima »

It seems libbluray has no env var or so that can be used to really disable loading of libmmbd, so the "best" solution I found was the following systemd drop-in config, which simply denies gvfs-udisks2-volume-monitor access to libmmbd and makemkvcon (the latter would probably not be needed).

Code: Select all

/etc/systemd/user/gvfs-udisks2-volume-monitor.service.d/disable-libmmbd.conf:

[Service]
InaccessiblePaths=-/usr/bin/makemkvcon
InaccessiblePaths=-/usr/lib/libmmbd.so.0
Post Reply