marktext/docs/LINUX.md
bolshoytoster 2ed5a85012
Removed the space in 'Mark Text' (#2763) (#2782)
* Removed the space in 'Mark Text' (#2763)

Literally just replaced all occurances of 'Mark Text' with 'MarkText' using sed.

This is directly related to #2763.

* Revert changes to .github directory

Reverted changelog etc.

* Added `cs` alias for `csharp` in code blocks (Fixes #2760)

* Added error handler in the renderer process (should fix #2758)

The `src/muya/lib/contentState/clickCtrl.js` file will now return if
`document.querySelector` fails to find an element.
2021-12-25 21:05:58 +08:00

3.0 KiB

Linux Installation Instructions

AppImage

Download the AppImage and type the following:

  1. chmod +x marktext-%version%-x86_64.AppImage
  2. ./marktext-%version%-x86_64.AppImage
  3. Now you can execute MarkText.

Installation

You cannot really install an AppImage. It's a file which can run directly after getting executable permission. To integrate it into desktop environment, you can either create desktop entry manually or use AppImageLauncher.

Desktop file creation

See example desktop file.

$ curl -L https://raw.githubusercontent.com/marktext/marktext/develop/resources/linux/marktext.desktop -o $HOME/.local/share/applications/marktext.desktop

# Update the Exec in desktop file to your real marktext command. Specify Path if necessary.
$ vim $HOME/.local/share/applications/marktext.desktop

$ update-desktop-database $HOME/.local/share/applications/

AppImageLauncher integration

You can integrate the AppImage into the system via AppImageLauncher. It will handle the desktop entry automatically.

Uninstallation

  1. Delete AppImage file.
  2. Delete your desktop file if exists.
  3. Delete your user settings: ~/.config/marktext

Custom launch script

  1. Save AppImage somewhere. Let's say ~/bin/marktext.AppImage

  2. chmod +x ~/bin/marktext.AppImage

  3. Create a launch script:

    #!/bin/bash
    DESKTOPINTEGRATION=0 ~/bin/marktext.AppImage
    

Known issues

  • MarkText is always integrated into desktop environment after updating

Binary

You can download the latest marktext-%version%.tar.gz package from the release page. You may need to install electron dependencies.

Flatpak

Installation

Prerequisites:

You need to install the flatpak package for your distribution. Please see the official flatpak tutorial for more information and note that you have to add the flathub repository (flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo) as described in the Quick Setup.

Install from Flathub:

After you install flatpak and flathub repository, you can install MarkText with just one command (note that you may be asked to enter your password):

flatpak install flathub com.github.marktext.marktext

or flatpak install --user flathub com.github.marktext.marktext to install for the current user only.

To run MarkText just execute flatpak run com.github.marktext.marktext or click on the MarkText icon in your application launcher.

Update

To update MarkText run the following command:

flatpak update com.github.marktext.marktext

or flatpak update to update all installed flatpaks.