far2l
far2l copied to clipboard
Is there any way to have working NetRocks with SMB support at Mac OS X?
Good day,
Usual thanks to the contributors for the great work on Far2l port!
Sorry if I missed in discussions, but is there any way/hope to build Far2l for Mac OS X with NetRocks supporting SMB? I have NAS in my network with SMB shares, and would like to connect them from NetRocks. Yes, I can mount the shares by Mac OS Finder, and the shares become accessible from within Far2l then. However, I prefer to stay with Far and to not mix its use with Finder.
I'm using Mac OS X Catalina 10.15.5 + brew ports. There is no libsmbclient-dev port and seems no any hope to get it (probably due to license issues with Samba project). Can anybody kindly confirm there is NO way to get NetRocks + SMB for the configuration?
Thank you,
If macos is able to mount SMB resources from command line then you may use 'file://' protocol: create file protocol with working directory pointing to some preselected path, open [protocol options] and specify mount command in 'command to execute when connect', so each time you will navigate to this resource in netrocks - it will execute specified command and open that directory in panel. Note that there is 'disconnect' command, so once opened one time - it will remain mounted until you will unmount it manually.
Regarding native support, i've google a bit and found that there're quite many SMB client libraries appeared recently, beside samba. For instance this one declared to support macos too: https://github.com/sahlberg/libsmb2 So it looks as potentially doable, just need to implement SMB using this (or some other if any) library, hoping its stable enough.
If macos is able to mount SMB resources from command line then you may use 'file://' protocol: create file protocol with working directory pointing to some preselected path, open [protocol options] and specify mount command in 'command to execute when connect', so each time you will navigate to this resource in netrocks - it will execute specified command and open that directory in panel.
Thank you, that worked for me!
@elfmz Any progress in this area?