Good to know that changes, but I found 2 new questions:
-
app configuration path has been changed to
~/.config/Electron
, not~/.config/Typora
, because electron did not start with a package.json file. We can use electron'sapp.setPath()
to override it; -
the app version in 'Help -> About' displays version of electron, not Typora. We can also override it with the version name from package.json file.
Here was the changed typora.js
:
#!/usr/bin/electron
const { join } = require('path');
const { app } = require('electron');
const APP_DIR = '/usr/share/typora/';
const conf = require(APP_DIR + 'package.json');
app.setName(conf.name);
app.setPath('userData', join(app.getPath('appData'), conf.name));
app.getVersion = () => conf.version;
process.argv.shift();
require(APP_DIR + conf.main);
Pinned Comments
irgendwr commented on 2023-01-24 18:49 (UTC) (edited on 2023-10-17 21:03 (UTC) by irgendwr)
Before flagging this package as "out-of-date", please read this:
First of all, I appreciate your help, but I'm already running a script that notifies me once a new version is available. Please wait 1-2 days before flagging, unless it is critical. Usually I manage to push updates on the same day as Typora releases them.
Also: The latest version on their website might not be the latest Linux repository version. E.g. because some updates do not have any changes related to Linux.
To check the latest Linux version, run the following command:
curl -s https://www.typora.io/linux/Packages | grep Version | cut -f 2 -d ' ' | sort -V | cut -f 1 -d '-' | uniq
Please do not flag this package as "out-of-date" if the "new version" is not listed in the output of the aforementioned command.
irgendwr commented on 2021-11-26 12:36 (UTC) (edited on 2022-10-09 11:03 (UTC) by irgendwr)
Typora is no longer completely free since it's out of beta. It is possible to use Typora for free on Linux; Some restrictions may apply. See the official FAQ: "Can I use Typora for free?" for more details. Alternatively you can purchase a license.
Please report issues with Typora here: https://github.com/typora/typora-issues