Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Run command after automount #285

@coldfix

Description

@coldfix

But I'm trying to make it do
things outside its design: when a USB stick containing a filesystem with
specific UUIDs is inserted, I want it to automount, then autorun a specific
command ("/usr/local/bin/make-backup" :-). I've got a patch that adds
that functionality, but it's a bit invasive, so I'm not sure if you'd want it.

I should also see if I can have it autorun a command when a disk is inserted
into the optical drive. Ideally it would run different commands based on
the medium type:
blank: run make-backup
audio cd: extract all the tracks and convert them to .mp3
dvd: run vlc
cd-rom: mount the filesystem
etc. But that might require lots of changes to the udiskie config syntax.

	-- JF

Originally posted by @dajt1725 in #284 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions