Giter VIP home page Giter VIP logo

Comments (10)

billziss-gh avatar billziss-gh commented on August 26, 2024 2

@mohankumarv2005 thank you for the detailed steps.

When I follow your steps I can confirm that the shortcut ends up with a blank icon as you say. I will investigate further to resolve this problem.

from cgofuse.

billziss-gh avatar billziss-gh commented on August 26, 2024 1

My initial experiments suggest that this works correctly only when the file system name is NTFS.

I was able to make this work by starting memfs like this:

memfs -oExactFileSystemName=NTFS y:

Capture

from cgofuse.

billziss-gh avatar billziss-gh commented on August 26, 2024

Thanks for the message:

  • I assume by shortcut you mean regular .lnk files.
  • How do you create those shortcuts?
  • Is the shortcut's target also on the file system?

This works for me with gomemfs for both local and network drives:

Local drive (memfs -o volname=MEMFS y:):
Capture

Network drive (memfs -o VolumePrefix=/gomemfs/share,volname=MEMFS y:):
Capture2

To make the shortcut I simply dragged and dropped the devenv.exe file into the gomemfs drive, which creates a shortcut

from cgofuse.

mohankumarv2005 avatar mohankumarv2005 commented on August 26, 2024

Thank you for your response.

Here are my answers:-

  • I assume by shortcut you mean regular .lnk files. -> yes
  • How do you create those shortcuts? -> via Windows GUI
  • Is the shortcut's target also on the file system? -> The Shortcut file itself & target program is in Local Disk. Only the icon is in memfs.

Please let me know if you need more details.
image

from cgofuse.

billziss-gh avatar billziss-gh commented on August 26, 2024

@mohankumarv2005 it is likely that I misunderstand what you mean. Can you please post a detailed list of steps to make this happen in MEMFS? I cannot reproduce locally.

You may also wish to contact me via private email with more details.

See screenshot of a gomemfs drive started with memfs -ovolname=MEMFS y: and an icon copied into the drive. The icon is displayed correctly.

Capture

If you are looking to change the drive icon itself, Microsoft has instructions here:

https://docs.microsoft.com/en-us/windows/win32/shell/how-to-assign-a-custom-icon-and-label-to-a-drive-letter

from cgofuse.

mohankumarv2005 avatar mohankumarv2005 commented on August 26, 2024

Sure, here are the detailed steps:
OS: Windows 10 Enterprise

  1. Mount memfs.exe "memfs.exe Y:"
  2. Copy attached
    Drive.ico.txt
    icon "Drive.ico" to Y: (Please rename after download)
  3. On Windows Desktop, Right Click and Create a Shortcut with Target as "notepad.exe"
  4. Notice that Shortcut is created in Desktop Successfully with Default Notepad Icon showing.
  5. Right Click on Shortcut -> Properties -> Change Icon -> Point to "Y:\Drive.ico"
  6. Notice that the Shortcut Icon in the Desktop shows Blank.

from cgofuse.

mohankumarv2005 avatar mohankumarv2005 commented on August 26, 2024

I am glad you are able to reproduce. But, even after I start memfs.exe with "-oExactFileSystemName=NTFS", the still see the same issue. The icon is still showing blank.

from cgofuse.

billziss-gh avatar billziss-gh commented on August 26, 2024

In my experiments earlier I tried with both WinFsp MEMFS and cgofuse MEMFS. Perhaps I observed some weird caching effect from WinFsp MEMFS when I saw this working. I will try it again.

from cgofuse.

billziss-gh avatar billziss-gh commented on August 26, 2024

I may have to research this a bit better. This no longer works for me with the icon you posted earlier. However it does work with other icons (e.g. the favicon.ico found in the Windows folder).

(Thankfully the screenshot that I posted earlier serves as proof that I did see it working earlier, because I am beginning to question my own sanity :)

from cgofuse.

mohankumarv2005 avatar mohankumarv2005 commented on August 26, 2024

I completely understand. I will wait for your response. Thank you so much for your time.

from cgofuse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.