Skip to content
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

feat: Open files/folder in the file explorer #1117

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Doublonmousse
Copy link
Collaborator

@Doublonmousse Doublonmousse commented Jun 8, 2024

Reopening #1089 after a github mess...

To fix #1053

I switched to opener and added the action to open the workspace folder in the folder submenu.
This is a PR that's very similar to #868, using a slightly different crate (opener) that has a reveal call and a MIT OR Apache-2.0 license.

The implementation detail for this is here https://docs.rs/opener/latest/opener/fn.reveal.html
The open crate doesn't have this option afaik but having two crates doing very similar things is slightly redundant

Tested only on linux aarch64 for now (but should be supported on all platforms)

image

One thing to verify is that opener does not have the same open::that_detached option, only opener::open and I don't know if that makes a difference or not

@flxzt
Copy link
Owner

flxzt commented Jun 9, 2024

One thing to verify is that opener does not have the same open::that_detached option, only opener::open and I don't know if that makes a difference or not

Interesting - the docs and the implementation suggest that it doesn't take care of being non-blocking nor being detached from the rnote process. I think on my Gnome installation it ends up being okay because it launches through dbus but for other systems/file-managers this might be an issue. Need to test it more with different distributions.

Otherwise going with opener seems to be the right choice, looks like it handles many edge-cases and a variety of different systems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to open Workspace in file manager
2 participants