Repository navigation
Windows version: native app, installer, shared core - #2
Merged
Merged
Conversation
Starting converters, finding them on PATH, home and cache folders, the writable-folder check and the process-alive check now have Linux and Windows versions. Converters start without a console window on Windows; Ghostscript is gswin64c there. GTK deps are Linux-only, libc Unix-only. Tests that need Unix commands or permissions are marked Unix-only.
session.rs holds what the wheel offers, the centre text, running a batch and the result summary; app.rs keeps only the GTK side. The CLI moves to the library, with shiftdrop-cli as a console-only binary for Windows.
A low-level mouse hook on its own thread notices a drag and Shift (Ctrl for tools) and shows the wheel under the pointer: first as an invisible disc that catches the drag, drawn once the drag turns out to carry files. The wheel is an OLE drop target that only ever accepts a copy. Direct2D draws both windows; work runs through session, as on Linux. Logs to %LOCALAPPDATA%\shiftdrop\shiftdrop.log. Trim and resize dialogs to come.
A program started by an installer inherits the PATH from before winget added the converters. Also look in winget's links folders, LibreOffice's folder and the Ghostscript shipped next to the exe. LibreOffice gets a proper file:/// URL on Windows.
A second launch passes its files to the running copy and leaves. Files sent from Explorer open the wheel at the pointer to pick by clicking; right-click switches to tools, Esc or clicking elsewhere closes it.
Installs both exes and Ghostscript (fetched from Artifex, hash-checked), starts ShiftDrop at sign-in as the signed-in user, adds Send To, and installs FFmpeg, ImageMagick, Poppler and optionally LibreOffice with winget, or points to downloads when winget is missing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sys.rs; wheel logic, geometry and CLI shared by both front endssrc/win/): mouse hook notices drag + Shift, wheel is a copy-only OLE drop target drawn with Direct2D, status pop-up, trim/resize dialogs, Send To click mode, single instanceShiftDrop-Setup-x64.exeLinux app checked on this branch (D-Bus actions, wheel placement, CLI). Windows not yet tested on a real desktop.