Le vendredi 30 mars 2012, à 11:37 +0400, Ilya Chernykh a écrit :
On Friday 30 March 2012 11:32:53 Vincent Untz wrote:
- we're not removing udisks, we're simply adding udisks2
- udisks2 and udisks are parallel-installable and can run at the same time
Thanks. This is interesting. I wonder how they do not conflict.
It follows that they do not use the same command-line tools or they are named differently?
I was thinking about implementing automounting through the udev rules but this needs a stable command-line interface (instead of broken udevmountd command) https://bugzilla.novell.com/show_bug.cgi?id=712485 .
The command-line tools provided by udisks/udisks2 are just details: the main point of udisks/udisks2 is the dbus interfaces.
Still it is impossible to call dbus from an udev rules file. That is the problem.
man gdbus man dbus-send
Is it recommended to include such calls to /etc/udev/rules.d ?
No idea, I'm just telling it's possibe to directly use a command-line to interact with a dbus service.
I also unfamiliar with dbus calls...
udisks --mount /dev/sdb1
is so simple...
So just keep using it. Or write a wrapper that uses udisksctl if it's there, or falls back to udisks in the other case. Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org