There are two parts to making a volume appear. You've got one, but are likely missing a more subtle step.
The obvious part is to provide a ".VolumeIcon.icns" file. You're probably doing this fine. The not-so-obvious part is to set the "has custom icon" bit on the volume. Since this isn't HFS, the bit lives in a file parallel to the mount point in /Volumes. In < http://macfuse.googlecode.com/svn/trunk/filesystems-objc/FUSEObjC/FUSEFileSystem.m>, in -startFuse, look at the section of code headed with "// Create mount header". This creates the magic file. The problem is that you can't easily do this within the fuse app itself. Well, perhaps you can if you're clever; in the filesystems that I've done and in the ObjC wrapper, it's done by the mounting process. Avi On 5/1/07, B. Partridge <[EMAIL PROTECTED]> wrote: > > > First of all, kudos to the development team for making one of the best > parts of Linux available for the Mac... and fully integrated into the > Finder too! > > Can someone help me on the correct way to make a valid mac volume icon > programmatically from within the FUSE callbacks? > > I've tried adding code to the open and read callbacks to > consider .VolumeIcon.icns, but it doesn't work. > > I know it can be done from Objective-C using the binding, but how can > you do it from regular C? In other words, to which FUSE callbacks > would I need to add code to make a valid volume icon like in > SpotlightFS? > > Even better, could there be a wiki page about this? > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "macfuse-devel" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/macfuse-devel?hl=en -~----------~----~----~----~------~----~------~--~---
