If I use Mint's file explorer and connect to a network drive, then OpenDialog finds the mapping. See attached.
marsheng, that is what I explained to you a couple of days ago. If the network drive has been mounted, TOpenDialog finds it. If its not mounted, it does not exist as a file system on the system and therefore cannot be found by TOpenDialog and friends.
I explained to you that you can search for and mount a drive in your own code but that will involve writing some code.
Or you establish the connection before opening your app.
By the way, its not a case of what eg Linux Mint uses as a default connection, the protocol to be used is established by the server. My guess is you have a 'server', probably a Windows box, that is offering a "windows file share", that means its SMB. The tool you need to use, as I mentioned, is smbclient.
This is not a LCL bug, its more something that LCL does not do. It would be good if it did offer you a component that does it but no one has been sufficiently motivated to write one yet. Maybe you, with the need, will write one ? Thats how OpenSource works.
@PascalDragon - the TOpenDialog family do provide access to
mounted file systems, the OP wants the tools to find and mount a remote FS that is currently
unmounted.
As I mentioned, it could be implemented with a "network" button or link that would scan, using nominated protocols, the local network, offer the user a list and then get required credentials and mount, using either GVFS, smbclient, whatever KDE uses, etc.
Davo