-
Notifications
You must be signed in to change notification settings - Fork 41
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
Open Model Folder #167
Open Model Folder #167
Conversation
packages/frontend/src/lib/table/model/ModelColumnActions.svelte
Outdated
Show resolved
Hide resolved
function openModelFolder() { | ||
console.log(object.file); | ||
if (object && object.file) { | ||
studioClient.openURL('file://'+object.file.path); |
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.
I would use uris everywhere
build the URI using
Uri.file(object.file.path)
and then not have in studioClient
async openURL(url: string): Promise<boolean> {
return await podmanDesktopApi.env.openExternal(podmanDesktopApi.Uri.parse(url));
}
but just accept URI (to avoid double parse/unexpected behavior)
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.
I did not pay enough attention to backend/frontend usage so you may disregard my comment as basically frontend has no access to Podman Desktop API and the URI class.
so either you revert the commit or you have openFile(filePath: string)
method on studio-client that will do openExternal(URI.file(filePath))
sorry for the noise
0c4f13b
to
74cbcb4
Compare
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.
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.
LGTM
I created an issue on Podman Desktop: podman-desktop/podman-desktop#5732 |
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.
I would fix the issue on desktop before releasing tbh but maybe @jeffmaury wants to have it for the release.
BTW looking at it again ... do we really need to show that dialog confirmation? We are just opening a local folder, nothing too serious. Can we just open the folder without asking to confirm?
That maybe the cause of security issue, @benoitf WDYT ? |
I created the commit and the branch but forgot to open the PR here it is podman-desktop/podman-desktop#5743 |
74cbcb4
to
87353db
Compare
remove rag data dir
Fixes partially #50