Comments (10)
@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.
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:
from cgofuse.
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:
):
Network drive (memfs -o VolumePrefix=/gomemfs/share,volname=MEMFS y:
):
To make the shortcut I simply dragged and dropped the devenv.exe
file into the gomemfs drive, which creates a shortcut
from cgofuse.
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.
from cgofuse.
@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.
If you are looking to change the drive icon itself, Microsoft has instructions here:
from cgofuse.
Sure, here are the detailed steps:
OS: Windows 10 Enterprise
- Mount memfs.exe "memfs.exe Y:"
- Copy attached
Drive.ico.txt
icon "Drive.ico" to Y: (Please rename after download) - On Windows Desktop, Right Click and Create a Shortcut with Target as "notepad.exe"
- Notice that Shortcut is created in Desktop Successfully with Default Notepad Icon showing.
- Right Click on Shortcut -> Properties -> Change Icon -> Point to "Y:\Drive.ico"
- Notice that the Shortcut Icon in the Desktop shows Blank.
from cgofuse.
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.
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.
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.
I completely understand. I will wait for your response. Thank you so much for your time.
from cgofuse.
Related Issues (20)
- Write method not called HOT 1
- Enable LOCK feature HOT 2
- How to increase buffer size? (max_pages and libfuse3) HOT 1
- Mount and Unmount Result
- Mixup of O_EXCL and O_TRUNC constant values CGO vs non CGO HOT 13
- warning: "FUSE_USE_VERSION" redefined HOT 1
- possible to call cheat engine with cgofuse HOT 1
- Support ARM architecture on Linux
- Incorrect writes from fuse HOT 12
- Need to know when the fuse service is ready HOT 4
- Please provide a way to retrieve information about the fuse implementation
- memfs example problems
- Golang Windows Passthrough version HOT 1
- command line options for Memfs HOT 8
- How can I not let it download video/image files automatically? HOT 3
- Mirrorfs? HOT 2
- Possibility to render folder asynchronously with Readdir HOT 11
- Failing to mount: The service has failed to start (Status=c0000034) HOT 1
- *winfuse.Stat_t.Uid is uint32 but on windows it's supposed to be a string HOT 1
- File copies using `dd` for cgofuse (memfs/ custom filesystem) are super slow on Windows 10 using PowerShell/MINGW64 terminal HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cgofuse.