mirror of
https://github.com/stashapp/stash.git
synced 2026-04-28 18:04:57 +02:00
* Add reveal in file manager button to file info panel Adds a folder icon button next to the path field in the Scene, Image, and Gallery file info panels. Clicking it calls a new GraphQL mutation that opens the file's enclosing directory in the system file manager (Finder on macOS, Explorer on Windows, xdg-open on Linux). Also fixes the existing revealInFileManager implementations which were constructing exec.Command but never calling Run(), making them no-ops: - darwin: add Run() to open -R - windows: add Run() and fix flag from \select to /select,<path> - linux: implement with xdg-open on the parent directory - desktop.go: use os.Stat instead of FileExists so folders work too * Disallow reveal operation if request not from loopback --------- Co-authored-by: 1509x <1509x@users.noreply.github.com> Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
11 lines
234 B
GraphQL
11 lines
234 B
GraphQL
mutation DeleteFiles($ids: [ID!]!) {
|
|
deleteFiles(ids: $ids)
|
|
}
|
|
|
|
mutation RevealFileInFileManager($id: ID!) {
|
|
revealFileInFileManager(id: $id)
|
|
}
|
|
|
|
mutation RevealFolderInFileManager($id: ID!) {
|
|
revealFolderInFileManager(id: $id)
|
|
}
|