====== Installing EditBench ======
Get version 0.1.12 from [[https://kalretro.au/editbench/|the download page]]. Both platforms are 64-bit.
===== Windows =====
Download ''editbench-0.1.12-windows-x64-setup.exe'' and run it. It asks who EditBench is for:
* **Just for me** installs under ''%LOCALAPPDATA%\Programs\EditBench'' with no administrator rights needed.
* **Everyone on this computer** installs under ''C:\Program Files\EditBench''. Windows asks for administrator rights.
Either way **EditBench** is added to the Start menu, and to the **Open with** list: right-click a file, choose **Open with**, then **EditBench**. This is offered for every file type and does not change what a double-click opens; to make EditBench the usual program for a type, choose **Open with → Choose another app** and tick **Always**. From version 0.1.6 the right-click menu of every file also has **Edit with EditBench**; on Windows 11 it is under **Show more options**. The portable ZIP adds neither. Remove it from **Settings → Apps** or with the Uninstall shortcut; your settings are kept.
For a portable copy, extract ''editbench-0.1.12-windows-x64.zip'' anywhere and run ''EditBench\editbench.exe''.
* It needs Windows 10 or later.
* Settings are kept in ''%APPDATA%\editbench''.
* The terminal panel runs ''cmd.exe'' and needs Windows 10 version 1809 or later.
* Server passwords are kept only until you close EditBench.
* Before 0.1.7, 16 of the 149 encodings (GB2312, EUC-TW, the ISO-2022 family and others) were not available on Windows; they now work as on Linux.
* Optional programs such as ''git'' and ''aspell'' must be on the PATH.
The Windows version is new. It runs on a Windows computer with the terminal panel working; most other features have been tried under Wine only, and printing has not been run. Tell us if something does not work.
===== Debian, Ubuntu, Mint =====
Download ''editbench_0.1.12_amd64.deb'', open a terminal in that folder and run:
sudo apt install ./editbench_0.1.12_amd64.deb
It needs Ubuntu 22.04, Debian 12 or newer. Remove it with ''sudo apt remove editbench''.
===== Other distributions =====
tar -xzf editbench-0.1.12-linux-x86_64.tar.gz
cd editbench-0.1.12-linux-x86_64
./install.sh
This installs for your user only, under ''~/.local'', with no root needed. ''./install.sh --uninstall'' removes it. It needs glibc 2.35 or later and the PCRE2 library (''libpcre2-8'').
===== Updates =====
From version 0.1.2, EditBench checks once a day whether a new version is out and shows a window when there is one. **Help → Check for Updates** checks straight away. Versions 0.1.0 and 0.1.1 have no update check: install 0.1.6 from the download page.
* **Update Now** downloads the new version and installs it. A copy installed from the ''.deb'' asks for your password; on Windows the new installer runs and EditBench closes while it installs. Save your work first: on Windows EditBench will not start the update while documents have unsaved changes.
* A copy from the tar archive or the portable ZIP opens the download page instead.
* **Skip This Version** stops the notice for that version. Untick **Tell me when a new version is available** (also under **Edit → Settings**, Services) to stop the daily check.
* EditBench only downloads over https and checks the file against the checksum published with the release. It uses the system's ''curl''.
Checking and downloading have been tested. Installing an update from inside EditBench has not been run yet; if Update Now fails, download the new version from the page.
===== Checking a download =====
Download ''SHA256SUMS'' into the same folder and run ''sha256sum -c --ignore-missing SHA256SUMS''.
===== Starting it =====
Choose **EditBench** in the application menu, or type ''editbench'' in a terminal.
^ Command ^ What it does ^
| ''editbench FILE'' | Opens the file. ''FILE:12:5'' goes to line 12, column 5. |
| ''editbench -r FILE'' | Opens it read-only. |
| ''editbench -p FILE'' | Prints it to the default printer and exits. |
| ''editbench -s SCRIPT.js'' | Runs a JavaScript file. |
| ''editbench --new-instance'' | Starts a second copy instead of using the one already open. |
On Linux, settings are kept in ''~/.config/editbench''. Your settings stay when you remove the program.
===== Optional programs (Linux) =====
Some commands use other programs when they are installed. Without one, that command says so and changes nothing.
^ Program ^ Used for ^
| ''aspell'' | Spell check |
| ''git'' | The Git toolbar and console |
| ''ctags'' | Build Tag Index and Find Symbol |
| ''tidy'', ''xmllint'' | HTML Tidy and XML checks |
| ''secret-tool'' (libsecret-tools) | Keeping server passwords |
| ''lp'' (CUPS) | Printing |
| ''curl'', ''pkexec'' | Checking for and installing updates |
| ''rustfmt'', ''black'', ''prettier'' and others | The source code formatter |
===== Troubleshooting =====
* **EditBench does not start on a Windows virtual machine (before 0.1.6):** a virtual machine without a graphics card offers only OpenGL 1.1. From 0.1.6 EditBench notices this and draws with DirectX instead; the first start takes a moment longer. To try OpenGL again later, delete ''use-directx-renderer'' in ''%APPDATA%\editbench''.
* **It does not start (Linux).** Run ''editbench'' in a terminal and read the message. It needs working OpenGL or Vulkan graphics.
* **"version GLIBC_2.35 not found".** The system is older than the packages support. [[editbench:building|Build it from source]] instead.
* **A menu command is greyed out.** It needs something that is not there yet, such as an open file, a selection or a project.
Questions and bug reports: slaterm@theiguru.au.