I'll add since you didn't mention release...I just tried in current bullseye as of now and my suggestion does not work, there is the directory, gigolo times out...So I'll check up on this...Something changed, or is broke.
During the test a few other stretch's and buster's work fine.
Side note, samba is not required but if you need extra settings, gigolo does parse etc/samba/smb.conf.
never mind...
#752190 [m| | ] [gigolo] [gigolo] missing dependency 'gvfs-backends' makes gigolo support only 'unix devices'
Thanks for the loop! Now I know...now more to add...
This loop has sent me to the archives. I have a tree of vm images all spawned from one. Since I use the solution I gave but rarely I discovered I had a flawed current image, and I can't find the issue. It manifest in a strange way - gigolo 5.1 in bullseye does work, however something is amiss. Access method matters and it shouldn't? Thunar doesn't work either - it can browse the smb share, read file details, but cannot copy from, or click into whatever default action. I get backend errors, even some gstreamer errors. However, since thunar has given troubles in the past I had SpaceFM configured also and in the same session it works fine! I traced the issue all the way back to 1932, that is week 32 of 2019, around buster is stable time. Some derivatives work, some don't. This covers bullseye too. I did lots of testing yesterday, some gigolo doesn't even work. Maybe kernels, maybe I don't know!
So, I have a current buster working fine, and many derivatives doing fine with what they do but can't browse smb. They don't need to but I'll scrap them anyway, it's trivial for me to plant a new tree...