-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
show network drives on macOS #194
Conversation
Could you explain a little bit how you load the network drivers on MacOS? I actually thought that like in Linux on MacOS all volumes are files and are therefore included in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for implementing. Created a few threads :)
I think you are the first person to test the file dialog on Mac. Is it completely working there? Can I remove the warning that the dialog has only been tested on Windows and Linux from the readme? Will merge the PR tomorrow. |
Yes, works fine, really happy that I found this! Though, there is the weird thing with the volumes (some removable drives appear twice with a slightly different name) with this PR it will also show the time-machine drive (system built-in backup drive, which is invisible normally, we could set it to not show invisible drives in this PR, which might make sense[?]...)
I could open up issues with these two points, they do not need to be fixed with this PR. |
Would look like this without the invisible drives: if let Ok(entries) = fs::read_dir("/Volumes") {
for entry in entries.filter_map(Result::ok) {
let path = entry.path();
if seen_mount_points.insert(path.clone()) {
if let Some(name_osstr) = path.file_name() {
if let Some(name) = name_osstr.to_str() {
if path.is_dir() && !name.starts_with('.') {
result.push(Disk::from_path(&path, canonicalize_paths));
}
}
}
}
}
} managed to take out the Should I commit this as well? |
Ye, the same applies to Windows, but I think it's not so important that we need to change it. Usually everyone understands what the home directory means, and changing the name per platform is just too much hassle when supporting multilingual ^^
You can already add custom sections to the left sidebar using
Yes, of course, that’s part of the PR ;) |
Yes, I found the pin function already, have to check out the quick_access, thanks! |
Have you thought about storing the pinned folders persistently with |
ah yes, perfect, that works! |
@hacknus is the PR finished now? |
Yes! |
Thanks for implementing! |
this addresses #168 for macOS.
It still shows my removable drive twice, for some reason, so this bug is still there. But network drives are available and Macintosh HDD is not shown twice anymore.
Figure: "Space" is a network drive mounted via SMB
EDIT: messed up the rebase on the other PR, so closed it and opened up this one