Skip to content

Check pasteup --shortcut on a real Mac and Windows PC #6

Open

Description

@ftymoshchuk

pasteup --shortcut (#4) writes a double-click launcher. Tests cover the files it generates, and the Linux menu entry and the macOS script were both run on Linux. Neither launcher has been double-clicked on its own OS.

To check, after pipx install pasteup:

macOS

  • pasteup --shortcut reports ~/Desktop/Pasteup.command.
  • Double-clicking it opens Terminal, starts Pasteup and opens the browser. Gatekeeper should not object, because the file is made locally rather than downloaded.
  • Closing the Terminal window stops Pasteup.

Windows

  • Pasteup.bat lands on the real desktop, including one that OneDrive redirects. The location comes from the registry key User Shell Folders\Desktop.
  • Double-clicking it starts Pasteup in a console window and opens the browser.
  • A user name with accents still works; the file runs chcp 65001 for that.
  • On an error, such as a port already in use, the window stays open, so the message can be read.

Fix anything found in src/pasteup/shortcut.py, with a test in tests/test_cli.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions