From 4e34c235cd982baa2b8f8e01d081f3d148050cba Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sat, 8 Aug 2026 21:34:56 +0200 Subject: typora-bin: install to a versioned /opt directory Was /opt/Typora-linux-x64 (upstream's own unversioned name), now /opt/typora-bin-$VERSION, matching kitty-bin and the rest of the repo. Upgrades can no longer leave a previous release's files behind. The versioned path is now generated rather than written down twice: the wrapper ships an @APPDIR@ placeholder that the SlackBuild substitutes, and the chrome-sandbox setuid line is appended to doinst.sh at build time. Both would otherwise be stale-version traps on the next bump, the doinst.sh one silently costing the sandbox its setuid bit. Co-Authored-By: Claude Opus 5 --- typora-bin/README | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'typora-bin/README') diff --git a/typora-bin/README b/typora-bin/README index a04f077..040e31c 100644 --- a/typora-bin/README +++ b/typora-bin/README @@ -11,8 +11,9 @@ Typora is proprietary paid software. It ships as a time-limited free trial and needs a purchased license key for continued use. Packaging the tarball does not grant a license; see the homepage for terms. -The app is installed under /opt/Typora-linux-x64 and launched through -the /usr/bin/typora wrapper, which enables Electron's Ozone Wayland +The app is installed under a versioned directory in /opt (for this +release, /opt/typora-bin-1.14.9) and launched through the +/usr/bin/typora wrapper, which enables Electron's Ozone Wayland backend when it detects a Wayland session and otherwise leaves the default X11 path alone. Force either backend by setting TYPORA_OZONE=wayland or TYPORA_OZONE=x11. @@ -25,5 +26,5 @@ Export to PDF works out of the box. For docx, epub, LaTeX and other pandoc formats, install pandoc (available on SBo). Upstream's bundled Chromium license file is not duplicated into -/usr/doc; it ships in place as -/opt/Typora-linux-x64/LICENSES.chromium.html. +/usr/doc; it ships in place as LICENSES.chromium.html in that same +directory. -- cgit v1.2.3