# Install and update problems

> Fixes when Windows or macOS blocks Glyph, an update fails, or Glyph does not start on Linux.

## Windows: "Windows protected your PC"

Glyph is not signed with a paid Microsoft certificate yet, so SmartScreen warns
about new versions. Click **More info › Run anyway**.

If your antivirus removes the file, check the download first: compare its
SHA-256 with `SHA256SUMS.txt` on the
[release page](https://github.com/glyphmusic/apps/releases/latest).

```powershell
Get-FileHash .\glyph-<version>-x86_64-pc-windows-msvc.zip
```

The value must match the line for that file. Then allow it in your antivirus.

## macOS: "Glyph cannot be opened"

Glyph is not notarized by Apple yet, so macOS blocks the first start. Open
**System Settings › Privacy & Security** and click **Open Anyway** below the
message about `glyph`, then start it again.

Or, in Terminal, remove the download mark from the unpacked folder once:

```bash
xattr -dr com.apple.quarantine ~/Downloads/glyph-<version>-aarch64-apple-darwin
```

## Linux: Glyph does not start

Start it from a terminal to see the error:

```bash
./glyph
```

* **Missing library** (`error while loading shared libraries`): install the
  packages from [Development](../contributing/development.md#desktop-app), in
  particular WebKitGTK (`libwebkit2gtk-4.1`), GTK 3, libayatana-appindicator
  and ALSA.
* **Blank window, flickering or black background**: WebKitGTK's GPU compositing
  can fail on some graphics drivers. Switch **Settings › Appearance ›
  Animations** to **Processor (CPU)** (or start with
  `WEBKIT_DISABLE_DMABUF_RENDERER=1 ./glyph`).
* **No sound**: Glyph plays through ALSA; with PipeWire or PulseAudio install
  their ALSA plugin (`pipewire-alsa` or `pulseaudio-alsa`).

## Black screen right after start (0.13.4)

Glyph 0.13.4 could stop at a black screen after launch on Android, desktop and
in the web player. Update to 0.13.5 or newer: download it from the
[releases page](https://github.com/glyphmusic/apps/releases) if the app does
not get far enough to update itself. The web player updates when you reload the
page.

## "Update Glyph" covers the whole app

When the Glyph server introduces a change that older app versions can no longer
talk to, the server answers API requests with HTTP `426` (`app_outdated`).
Glyph then shows **Update Glyph** across the window instead of half-working
screens.

Click **Update now** to install the new signed release in place, or open the
[download page](https://glyph.my/download) if you installed Glyph manually or
through a package manager.

## "Update failed: …"

1. Check your connection: updates come from GitHub.
2. Try again under **Settings › About**.
3. Still failing? Download the new version from the
   [download page](https://glyph.my/download) and install it over the old one.
   Your library and settings stay.

Versions before 0.2.2 cannot read the new checksum file and need one manual
update this way. If you installed Glyph with a package manager, update it there.

If the message says the release is not signed, or not signed by the Glyph
release key, Glyph did not install it on purpose: install the release by hand
only if you trust where it came from.

## Is my download genuine?

Every release lists the SHA-256 of each file in `SHA256SUMS.txt`. Compare it
with `Get-FileHash` (Windows) or `shasum -a 256` (macOS, Linux).

## Signed releases

`SHA256SUMS.txt` comes with `SHA256SUMS.txt.minisig`, a
[minisign](https://jedisct1.github.io/minisign/) signature by the Glyph
release key. Its trusted comment names the repository and the version
(`glyph-release repo=glyphmusic/apps tag=v1.2.3`), so a signature for one
release does not fit another. The app, `glyph update`, the npm installer and
the companion's r-dlp updater install nothing without it; access to the GitHub
account alone is not enough to ship code to your devices.

Check a download yourself with the public key from `release-key.pub` in each
repository:

```bash
minisign -Vm SHA256SUMS.txt -P RWQ2xWZMYa2l251YUhrekvWRC+kaD698lXz0itKGjvNYAauLRTWCzg9o
sha256sum --check --ignore-missing SHA256SUMS.txt
```

Releases published before signing started carry no signature; Glyph installs
them only by hand.

## Related error codes

See [Error codes — Updates](error-codes.md#upd-updates) (`GX-UPD-*`), including:

* [`gx-upd-002`](error-codes.md#gx-upd-002) — App version too old for server (HTTP 426)
* [`gx-upd-003`](error-codes.md#gx-upd-003) — GitHub release API error or rate limit
* [`gx-upd-005`](error-codes.md#gx-upd-005) — Managed by OS package manager
* [`gx-upd-008`](error-codes.md#gx-upd-008) / [`gx-upd-009`](error-codes.md#gx-upd-009) — SHA-256 checksum or minisign signature failed

Machine-readable list: [errors.glyph.my/area/upd](https://errors.glyph.my/area/upd).
