ccswitchlink

package
v0.1.4630 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package ccswitchlink hands CC Switch's own ccswitch:// links back to it.

magpie v0.1.3981 to v0.1.4454 claimed ccswitch:// on every system (889758605), and 03314b25a stopped that. A claim an older magpie made can still be there: macOS's Launch Services remembering the old Info.plist, HKCU\Software\Classes\ccswitch on Windows, and magpie-ccswitch.desktop as the desktop's default on Linux. A link that arrives that way is opened with CC Switch when it is installed, and the claim is given back to it, so the next link goes there directly (asombrado_a on X: with both apps installed, a ccswitch:// import opened magpie).

What is known of CC Switch comes from its own source and releases (farion1231/cc-switch, v4.0.35): bundle id com.ccswitch.desktop with CFBundleURLSchemes ccswitch; the per-user MSI installs %LOCALAPPDATA%\Programs\CC Switch\cc-switch.exe and writes HKCU\Software\Classes\ccswitch to run it with "%1"; on Linux the package has "CC Switch.desktop" (MimeType=x-scheme-handler/ccswitch, Exec with no %u) and the app writes ~/.local/share/applications/cc-switch-handler.desktop (Exec=… %u) and makes it the default on its first start.

Index

Constants

View Source
const Scheme = "ccswitch"

Scheme is CC Switch's URL scheme.

Variables

View Source
var ErrNotInstalled = errors.New("CC Switch isn't installed; magpie opens magpie:// links only")

ErrNotInstalled is Forward's answer when no CC Switch is found.

Functions

func Forward

func Forward(link string) error

Forward opens link with CC Switch and gives back the claim on the scheme an older magpie made. ErrNotInstalled when there is no CC Switch: the link is then left alone, and so is the claim.

func Is

func Is(link string) bool

Is reports whether link is a ccswitch:// link.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL