Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- Automount media
- dbus.add_match("system", "interface='media.storage', member='connected'")
- dbus.connect_signal("media.storage",
- function (...)
- local data = {...}
- local dbustext = data[2]
- local presult = io.popen("udisksctl mount -b " .. dbustext)
- local result = presult:read("*all")
- presult:close()
- if not (result == "" or result == nil) then
- naughty.notify({font = "Verdana 14",
- title = "udisksctl",
- text = result,
- height = 100,
- width = 400,
- timeout = 13})
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement