#!/bin/bash
export XDG_RUNTIME_DIR="/run/user/1000"
export DBUS_SESSION_BUS_ADDRESS="unix:path=/bus"
rm -f "/usr/share/gvfs/mounts/gphoto2.mount" 2> /dev/null
rm -f "/usr/share/dbus-1/services/org.gtk.Private.GPhoto2VolumeMonitor.service" 2> /dev/null
rm -f "/usr/share/gvfs/remote-volume-monitors/gphoto2.monitor" 2> /dev/null
rm -f "/usr/lib/gvfs/gvfs-gphoto2-volume-monitor" 2> /dev/null
dbus-launch --exit-with-session gsettings set org.gnome.desktop.media-handling automount false 2> /dev/null
