Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7501315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:29:15+00:00 2026-05-29T20:29:15+00:00

I want to programmatically change the volume icon for a stacked file system implemented

  • 0

I want to programmatically change the volume icon for a stacked file system implemented using OSXFUSE (formerly MacFUSE). The icon needs to reflect the state of a mounted file system.

The approach that I have been trying to get working is to map requests for /.VolumeIcon.icns to the appropriate icon in the application bundle. Then sending change notifications to the file system for the actual path (path) and the mount path (mountPath).

    [[NSWorkspace sharedWorkspace] noteFileSystemChanged: @"/Volumes"]; 
    [[NSWorkspace sharedWorkspace] noteFileSystemChanged: [mountPath stringByDeletingLastPathComponent]];
    [[NSWorkspace sharedWorkspace] noteFileSystemChanged: mountPath];
    [[NSWorkspace sharedWorkspace] noteFileSystemChanged: [path stringByDeletingLastPathComponent]];
    [[NSWorkspace sharedWorkspace] noteFileSystemChanged: path];

    FNNotifyByPath([[[mountPath stringByDeletingLastPathComponent] dataUsingEncoding:NSUTF8StringEncoding] bytes], kFNDirectoryModifiedMessage, kNilOptions);
    FNNotifyByPath([[[path stringByDeletingLastPathComponent] dataUsingEncoding:NSUTF8StringEncoding] bytes], kFNDirectoryModifiedMessage, kNilOptions);
    FNNotifyByPath([[@"/Volumes" dataUsingEncoding:NSUTF8StringEncoding] bytes], kFNDirectoryModifiedMessage, kNilOptions);

Stepping through the debugger I can see this code being hit but the code to map the /.VolumeIcon.icns gets called infrequently and never in response to these notifications.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T20:29:16+00:00Added an answer on May 29, 2026 at 8:29 pm

    I think the short answer is, you’re out of luck. The long answer is while the OSXFUSE project is different than the Fuse4X project, they’re both derived from the same source, and Fuse4X has this to say about volume icons in their FAQ:

    Q 4.1. Why do Fuse4X volumes show up with “server” (or “network
    volume”) icons?

    A: To be precise, by default Fuse4X volumes show up as nonlocal
    volumes, which the Finder unfortunately treats the same as “servers”.
    It’s a good question as to why Fuse4X normally tags its volumes as
    nonlocal. Some people think that in the case of disk-based file
    systems, Fuse4X must tag the volume as local. Well, let us see.

    For a vfs to be local on Mac OS X, you need a “real” disk device – a
    /dev/disk* style node. Such a real disk device node in Fuse4X’s case
    is problematic: at mount time, for a local volume, the kernel would
    itself open the device node and pass it to Fuse4X. In doing so, the
    kernel would make sure that the device is not currently in use (for
    one, to disallow multiple mounts of the same device). This happens
    before control passes to Fuse4X and mounting can proceed. This would
    have been fine if the entire file system lived in the kernel, but in
    Fuse4X’s case, the user-space file system program would also want to
    (exclusively) open the disk device.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to know how to programmatically change the value of <input type=file> I
I want to programmatically change formulas in a whole lot of reports, like in
I want to programmatically create a directory on the server using ASP.NET. I have
Using C# and ASP.NET I want to programmatically fill in some values (4 text
i want to change the locale programmatically in my iphone app (basically because not
I want to programmatically parse and edit C++ source files. I need to change/add
I want to change the name of my Assembly Programmatically in C#, there is
I have a datalist i want to programmatically run some checks and then change
I want to change ImageView background (in my case gradient color) using selector state
I want to add a product to cart programmatically. Also, I want to change

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.