stash/internal/desktop
1509x 9a1b1fb718
[Feature] Reveal file in system file manager from file info panel (#6587)
* 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>
2026-02-23 12:51:35 +11:00
..
desktop.go [Feature] Reveal file in system file manager from file info panel (#6587) 2026-02-23 12:51:35 +11:00
desktop_platform_darwin.go [Feature] Reveal file in system file manager from file info panel (#6587) 2026-02-23 12:51:35 +11:00
desktop_platform_nixes.go [Feature] Reveal file in system file manager from file info panel (#6587) 2026-02-23 12:51:35 +11:00
desktop_platform_windows.go [Feature] Reveal file in system file manager from file info panel (#6587) 2026-02-23 12:51:35 +11:00
dialog_nonwindows.go Improve Windows stash behaviour (#2543) 2022-05-04 10:37:32 +10:00
dialog_windows.go Improve Windows stash behaviour (#2543) 2022-05-04 10:37:32 +10:00
icon_windows.syso Restructure go project (#2356) 2022-03-17 11:33:59 +11:00
systray_nixes.go Fix exit from systray (#4337) 2023-12-02 17:44:20 +02:00
systray_nonlinux.go FR: Update Tray Notification to Include Port (#6448) 2026-01-05 16:37:18 +11:00