Re: SMB share re-naming?
Re: SMB share re-naming?
- Subject: Re: SMB share re-naming?
- From: Quinn <email@hidden>
- Date: Wed, 30 Apr 2003 09:38:26 +0100
At 21:30 -0500 29/4/03, Michael Thole wrote:
Is there any way to rename the name displayed on the desktop for a SMB
share? I'm programatically mounting (on Jaguar) a share using
FSMountServerVolumeSync() and a url that looks something like this:
smb://user:pass@hostname/sharename/volname. Currently, it mounts as
expected, but instead of the Finder displaying the 'volname' on the
Desktop, it displays the 'sharename'. If I go and examine my /Volumes
folder, I'll find that it is actually named properly to 'volname'.
I've tried funky things like mounting to a folder in the Desktop (and
telling the finder not to automatically show mounted volumes), but that
just results in a horrible user experience and confuses the hell of out
the Finder.
On Jaguar-based systems, the volume name for SMB is always derived
from the share name. There's not much you can do about this. Please
file a bug.
<
http://developer.apple.com/bugreporter/>
If you send me the bug number, I'll add some comments to it based the
investigation I did today.
Another, much more minor problem:
When the 'volname' contains spaces, I escape them to ' ' (via
CFURLCreateStringByAddingPercentEscapes) before using
FSMountServerVolumeSync(). Unfortunately the system doesn't un-escape
these characters, so if my volume name is 'Dev Notes', then I get the
folder: '/Volumes/Dev Notes'.
This is a known bug <rdar://problem/2746609>. We expect the fix to
be in Panther.
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.