When I use Dolphin in Plasma (startplasma-wayland) I can mount an encrypted external hard drive by clicking on the drive name in the left sidebar. A dialog window pops up asking for the password:
But when I use Dolphin in Sway, the dialog window does not appear.
Starting Dolphin in the Konsole reveals the following error:
libpng warning: iCCP: known incorrect sRGB profile
kf.solid.backends.udisks2: Failed to call the SolidUiServer, D-Bus said:
QDBusError("org.freedesktop.DBus.Error.UnknownObject", "No such object path '/modules/soliduiserver'")
I don’t really know what to do about this, sadly, the only thing I found is that someone on reddit two years ago having the same issue (with an encrypted drive, same error message), and it appears to have been reported to kde developers.
Unless someone else with more insight into this than me comes along, you might want to try another file manager for use with Sway.
I encountered the exact same problem using dolphin in gnome(yes, gnome). After searching for a while I found that the SolidUiServer is a part of plasma-workspace. Finally I fixed this issue by installing plasma-workspace and I can now happily drop nautilus.
Thanks for your hint.
I installed explicitly libsForQt5.plasma-workspace but that did not help.
I say explicitly because I assume that it has been installed already via the installation of KDE/Plasma.
I have both installed: KDE and sway.
It looks like soliduiserver is a component of Plasma, and it looks like that udisks plugin is looking for it over dbus to do passphrase entry. You can probably normally mount it with another udisks interface. Maybe there’s another mounting backend, or a way to ask the mounting backend to use something other than soliduiserver, I’m not sure.